home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 3 / CD ACTUAL 3.iso / linux / sonido / cdplayer.000 / cdplayer
Tape Archive  |  1994-10-15  |  200.0 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Tape Archive (archive/tar).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Tape Archive (archive/tar) magic Supported
100% file POSIX tar archive (GNU) default
99% file POSIX tar archive (GNU), directory cdplayer-2.0/, mode 40755 , uid 146 , gid 0 , size 0 , seconds 5647652222, user mark, group root default
98% file data default
62% TrID TAR - Tape ARchive (GNU) default
37% TrID TAR - Tape ARchive (directory) default
100% dearkID deark: tar default
100% siegfried x-fmt/265 Tape Archive Format default
100% lsar Tar default (weak)
100% gt2 TAR Archiv gefunden (Auflistung ist deaktiviert) default
100% disktype GNU tar archive default
100% detectItEasy Archive: tar default
100% binwalkID POSIX tar archive (GNU), owner user name: "-2.0/" default
100% xdgMime application/x-tar default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 63 64 70 6c 61 79 65 72 | 2d 32 2e 30 2f 00 00 00 |cdplayer|-2.0/...|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000060| 00 00 00 00 20 34 30 37 | 35 35 20 00 20 20 20 31 |.... 407|55 . 1|
|00000070| 34 36 20 00 20 20 20 20 | 20 30 20 00 20 20 20 20 |46 . | 0 . |
|00000080| 20 20 20 20 20 20 30 20 | 20 35 36 34 37 36 35 32 | 0 | 5647652|
|00000090| 32 32 32 20 20 31 31 31 | 37 34 00 20 35 00 00 00 |222 111|74. 5...|
|000000a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000100| 00 75 73 74 61 72 20 20 | 00 6d 61 72 6b 00 00 00 |.ustar |.mark...|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 72 6f 6f 74 00 00 00 |........|.root...|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 63 64 70 6c 61 79 65 72 | 2d 32 2e 30 2f 62 69 74 |cdplayer|-2.0/bit|
|00000210| 6d 61 70 73 2f 00 00 00 | 00 00 00 00 00 00 00 00 |maps/...|........|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 20 34 30 37 | 35 35 20 00 20 20 20 31 |.... 407|55 . 1|
|00000270| 34 36 20 00 20 20 20 20 | 20 30 20 00 20 20 20 20 |46 . | 0 . |
|00000280| 20 20 20 20 20 20 30 20 | 20 35 36 34 31 37 31 30 | 0 | 5641710|
|00000290| 34 35 37 20 20 31 32 36 | 33 32 00 20 35 00 00 00 |457 126|32. 5...|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 75 73 74 61 72 20 20 | 00 6d 61 72 6b 00 00 00 |.ustar |.mark...|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 72 6f 6f 74 00 00 00 |........|.root...|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000400| 63 64 70 6c 61 79 65 72 | 2d 32 2e 30 2f 62 69 74 |cdplayer|-2.0/bit|
|00000410| 6d 61 70 73 2f 62 61 63 | 6b 2e 62 69 74 00 00 00 |maps/bac|k.bit...|
|00000420| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000430| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000460| 00 00 00 00 31 30 30 36 | 34 34 20 00 20 20 20 31 |....1006|44 . 1|
|00000470| 34 36 20 00 20 20 20 20 | 20 30 20 00 20 20 20 20 |46 . | 0 . |
|00000480| 20 20 20 20 34 32 33 20 | 20 35 36 34 31 37 30 37 | 423 | 5641707|
|00000490| 31 32 36 20 20 31 34 33 | 30 35 00 20 30 00 00 00 |126 143|05. 0...|
|000004a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000500| 00 75 73 74 61 72 20 20 | 00 6d 61 72 6b 00 00 00 |.ustar |.mark...|
|00000510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000520| 00 00 00 00 00 00 00 00 | 00 72 6f 6f 74 00 00 00 |........|.root...|
|00000530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000600| 23 64 65 66 69 6e 65 20 | 62 61 63 6b 5f 77 69 64 |#define |back_wid|
|00000610| 74 68 20 31 36 0a 23 64 | 65 66 69 6e 65 20 62 61 |th 16.#d|efine ba|
|00000620| 63 6b 5f 68 65 69 67 68 | 74 20 31 36 0a 73 74 61 |ck_heigh|t 16.sta|
|00000630| 74 69 63 20 63 68 61 72 | 20 62 61 63 6b 5f 62 69 |tic char| back_bi|
|00000640| 74 73 5b 5d 20 3d 20 7b | 0a 20 20 20 30 78 30 30 |ts[] = {|. 0x00|
|00000650| 2c 20 30 78 30 30 2c 20 | 30 78 30 30 2c 20 30 78 |, 0x00, |0x00, 0x|
|00000660| 30 30 2c 20 30 78 30 30 | 2c 20 30 78 30 30 2c 20 |00, 0x00|, 0x00, |
|00000670| 30 78 30 30 2c 20 30 78 | 30 30 2c 20 30 78 30 37 |0x00, 0x|00, 0x07|
|00000680| 2c 20 30 78 30 30 2c 20 | 30 78 38 35 2c 20 30 78 |, 0x00, |0x85, 0x|
|00000690| 36 31 2c 0a 20 20 20 30 | 78 36 35 2c 20 30 78 35 |61,. 0|x65, 0x5|
|000006a0| 39 2c 20 30 78 31 64 2c | 20 30 78 34 37 2c 20 30 |9, 0x1d,| 0x47, 0|
|000006b0| 78 31 64 2c 20 30 78 34 | 37 2c 20 30 78 36 35 2c |x1d, 0x4|7, 0x65,|
|000006c0| 20 30 78 35 39 2c 20 30 | 78 38 35 2c 20 30 78 36 | 0x59, 0|x85, 0x6|
|000006d0| 31 2c 20 30 78 30 37 2c | 20 30 78 30 30 2c 0a 20 |1, 0x07,| 0x00,. |
|000006e0| 20 20 30 78 30 30 2c 20 | 30 78 30 30 2c 20 30 78 | 0x00, |0x00, 0x|
|000006f0| 30 30 2c 20 30 78 30 30 | 2c 20 30 78 30 30 2c 20 |00, 0x00|, 0x00, |
|00000700| 30 78 30 30 2c 20 30 78 | 30 30 2c 20 30 78 30 30 |0x00, 0x|00, 0x00|
|00000710| 7d 3b 0a 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |};......|........|
|00000720| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000780| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000800| 63 64 70 6c 61 79 65 72 | 2d 32 2e 30 2f 62 69 74 |cdplayer|-2.0/bit|
|00000810| 6d 61 70 73 2f 65 6a 65 | 63 74 2e 62 69 74 00 00 |maps/eje|ct.bit..|
|00000820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000860| 00 00 00 00 31 30 30 36 | 34 34 20 00 20 20 20 31 |....1006|44 . 1|
|00000870| 34 36 20 00 20 20 20 20 | 20 30 20 00 20 20 20 20 |46 . | 0 . |
|00000880| 20 20 20 20 34 32 36 20 | 20 35 36 34 31 37 30 37 | 426 | 5641707|
|00000890| 31 32 36 20 20 31 34 35 | 30 32 00 20 30 00 00 00 |126 145|02. 0...|
|000008a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000900| 00 75 73 74 61 72 20 20 | 00 6d 61 72 6b 00 00 00 |.ustar |.mark...|
|00000910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000920| 00 00 00 00 00 00 00 00 | 00 72 6f 6f 74 00 00 00 |........|.root...|
|00000930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a00| 23 64 65 66 69 6e 65 20 | 65 6a 65 63 74 5f 77 69 |#define |eject_wi|
|00000a10| 64 74 68 20 31 36 0a 23 | 64 65 66 69 6e 65 20 65 |dth 16.#|define e|
|00000a20| 6a 65 63 74 5f 68 65 69 | 67 68 74 20 31 36 0a 73 |ject_hei|ght 16.s|
|00000a30| 74 61 74 69 63 20 63 68 | 61 72 20 65 6a 65 63 74 |tatic ch|ar eject|
|00000a40| 5f 62 69 74 73 5b 5d 20 | 3d 20 7b 0a 20 20 20 30 |_bits[] |= {. 0|
|00000a50| 78 30 30 2c 20 30 78 30 | 30 2c 20 30 78 30 30 2c |x00, 0x0|0, 0x00,|
|00000a60| 20 30 78 30 30 2c 20 30 | 78 30 30 2c 20 30 78 30 | 0x00, 0|x00, 0x0|
|00000a70| 30 2c 20 30 78 30 30 2c | 20 30 78 30 30 2c 20 30 |0, 0x00,| 0x00, 0|
|00000a80| 78 38 30 2c 20 30 78 30 | 30 2c 20 30 78 63 30 2c |x80, 0x0|0, 0xc0,|
|00000a90| 20 30 78 30 31 2c 0a 20 | 20 20 30 78 65 30 2c 20 | 0x01,. | 0xe0, |
|00000aa0| 30 78 30 33 2c 20 30 78 | 66 30 2c 20 30 78 30 37 |0x03, 0x|f0, 0x07|
|00000ab0| 2c 20 30 78 30 30 2c 20 | 30 78 30 30 2c 20 30 78 |, 0x00, |0x00, 0x|
|00000ac0| 66 30 2c 20 30 78 30 37 | 2c 20 30 78 66 30 2c 20 |f0, 0x07|, 0xf0, |
|00000ad0| 30 78 30 37 2c 20 30 78 | 30 30 2c 20 30 78 30 30 |0x07, 0x|00, 0x00|
|00000ae0| 2c 0a 20 20 20 30 78 30 | 30 2c 20 30 78 30 30 2c |,. 0x0|0, 0x00,|
|00000af0| 20 30 78 30 30 2c 20 30 | 78 30 30 2c 20 30 78 30 | 0x00, 0|x00, 0x0|
|00000b00| 30 2c 20 30 78 30 30 2c | 20 30 78 30 30 2c 20 30 |0, 0x00,| 0x00, 0|
|00000b10| 78 30 30 7d 3b 0a 00 00 | 00 00 00 00 00 00 00 00 |x00};...|........|
|00000b20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c00| 63 64 70 6c 61 79 65 72 | 2d 32 2e 30 2f 62 69 74 |cdplayer|-2.0/bit|
|00000c10| 6d 61 70 73 2f 70 61 75 | 73 65 2e 62 69 74 00 00 |maps/pau|se.bit..|
|00000c20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c60| 00 00 00 00 31 30 30 36 | 34 34 20 00 20 20 20 31 |....1006|44 . 1|
|00000c70| 34 36 20 00 20 20 20 20 | 20 30 20 00 20 20 20 20 |46 . | 0 . |
|00000c80| 20 20 20 20 34 32 36 20 | 20 35 36 34 31 37 30 37 | 426 | 5641707|
|00000c90| 31 32 36 20 20 31 34 35 | 32 35 00 20 30 00 00 00 |126 145|25. 0...|
|00000ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d00| 00 75 73 74 61 72 20 20 | 00 6d 61 72 6b 00 00 00 |.ustar |.mark...|
|00000d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d20| 00 00 00 00 00 00 00 00 | 00 72 6f 6f 74 00 00 00 |........|.root...|
|00000d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e00| 23 64 65 66 69 6e 65 20 | 70 61 75 73 65 5f 77 69 |#define |pause_wi|
|00000e10| 64 74 68 20 31 36 0a 23 | 64 65 66 69 6e 65 20 70 |dth 16.#|define p|
|00000e20| 61 75 73 65 5f 68 65 69 | 67 68 74 20 31 36 0a 73 |ause_hei|ght 16.s|
|00000e30| 74 61 74 69 63 20 63 68 | 61 72 20 70 61 75 73 65 |tatic ch|ar pause|
|00000e40| 5f 62 69 74 73 5b 5d 20 | 3d 20 7b 0a 20 20 20 30 |_bits[] |= {. 0|
|00000e50| 78 30 30 2c 20 30 78 30 | 30 2c 20 30 78 30 30 2c |x00, 0x0|0, 0x00,|
|00000e60| 20 30 78 30 30 2c 20 30 | 78 30 30 2c 20 30 78 30 | 0x00, 0|x00, 0x0|
|00000e70| 30 2c 20 30 78 30 30 2c | 20 30 78 30 30 2c 20 30 |0, 0x00,| 0x00, 0|
|00000e80| 78 30 30 2c 20 30 78 30 | 30 2c 20 30 78 36 30 2c |x00, 0x0|0, 0x60,|
|00000e90| 20 30 78 30 36 2c 0a 20 | 20 20 30 78 36 30 2c 20 | 0x06,. | 0x60, |
|00000ea0| 30 78 30 36 2c 20 30 78 | 36 30 2c 20 30 78 30 36 |0x06, 0x|60, 0x06|
|00000eb0| 2c 20 30 78 36 30 2c 20 | 30 78 30 36 2c 20 30 78 |, 0x60, |0x06, 0x|
|00000ec0| 36 30 2c 20 30 78 30 36 | 2c 20 30 78 36 30 2c 20 |60, 0x06|, 0x60, |
|00000ed0| 30 78 30 36 2c 20 30 78 | 30 30 2c 20 30 78 30 30 |0x06, 0x|00, 0x00|
|00000ee0| 2c 0a 20 20 20 30 78 30 | 30 2c 20 30 78 30 30 2c |,. 0x0|0, 0x00,|
|00000ef0| 20 30 78 30 30 2c 20 30 | 78 30 30 2c 20 30 78 30 | 0x00, 0|x00, 0x0|
|00000f00| 30 2c 20 30 78 30 30 2c | 20 30 78 30 30 2c 20 30 |0, 0x00,| 0x00, 0|
|00000f10| 78 30 30 7d 3b 0a 00 00 | 00 00 00 00 00 00 00 00 |x00};...|........|
|00000f20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001000| 63 64 70 6c 61 79 65 72 | 2d 32 2e 30 2f 62 69 74 |cdplayer|-2.0/bit|
|00001010| 6d 61 70 73 2f 70 6c 61 | 79 2e 62 69 74 00 00 00 |maps/pla|y.bit...|
|00001020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001060| 00 00 00 00 31 30 30 36 | 34 34 20 00 20 20 20 31 |....1006|44 . 1|
|00001070| 34 36 20 00 20 20 20 20 | 20 30 20 00 20 20 20 20 |46 . | 0 . |
|00001080| 20 20 20 20 34 32 33 20 | 20 35 36 34 31 37 30 37 | 423 | 5641707|
|00001090| 31 32 36 20 20 31 34 33 | 35 32 00 20 30 00 00 00 |126 143|52. 0...|
|000010a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001100| 00 75 73 74 61 72 20 20 | 00 6d 61 72 6b 00 00 00 |.ustar |.mark...|
|00001110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001120| 00 00 00 00 00 00 00 00 | 00 72 6f 6f 74 00 00 00 |........|.root...|
|00001130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001200| 23 64 65 66 69 6e 65 20 | 70 6c 61 79 5f 77 69 64 |#define |play_wid|
|00001210| 74 68 20 31 36 0a 23 64 | 65 66 69 6e 65 20 70 6c |th 16.#d|efine pl|
|00001220| 61 79 5f 68 65 69 67 68 | 74 20 31 36 0a 73 74 61 |ay_heigh|t 16.sta|
|00001230| 74 69 63 20 63 68 61 72 | 20 70 6c 61 79 5f 62 69 |tic char| play_bi|
|00001240| 74 73 5b 5d 20 3d 20 7b | 0a 20 20 20 30 78 30 30 |ts[] = {|. 0x00|
|00001250| 2c 20 30 78 30 30 2c 20 | 30 78 30 30 2c 20 30 78 |, 0x00, |0x00, 0x|
|00001260| 30 30 2c 20 30 78 30 30 | 2c 20 30 78 30 30 2c 20 |00, 0x00|, 0x00, |
|00001270| 30 78 30 30 2c 20 30 78 | 30 30 2c 20 30 78 33 30 |0x00, 0x|00, 0x30|
|00001280| 2c 20 30 78 30 30 2c 20 | 30 78 64 30 2c 20 30 78 |, 0x00, |0xd0, 0x|
|00001290| 30 30 2c 0a 20 20 20 30 | 78 31 30 2c 20 30 78 30 |00,. 0|x10, 0x0|
|000012a0| 33 2c 20 30 78 31 30 2c | 20 30 78 30 63 2c 20 30 |3, 0x10,| 0x0c, 0|
|000012b0| 78 31 30 2c 20 30 78 33 | 30 2c 20 30 78 31 30 2c |x10, 0x3|0, 0x10,|
|000012c0| 20 30 78 30 63 2c 20 30 | 78 31 30 2c 20 30 78 30 | 0x0c, 0|x10, 0x0|
|000012d0| 33 2c 20 30 78 64 30 2c | 20 30 78 30 30 2c 0a 20 |3, 0xd0,| 0x00,. |
|000012e0| 20 20 30 78 33 30 2c 20 | 30 78 30 30 2c 20 30 78 | 0x30, |0x00, 0x|
|000012f0| 30 30 2c 20 30 78 30 30 | 2c 20 30 78 30 30 2c 20 |00, 0x00|, 0x00, |
|00001300| 30 78 30 30 2c 20 30 78 | 30 30 2c 20 30 78 30 30 |0x00, 0x|00, 0x00|
|00001310| 7d 3b 0a 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |};......|........|
|00001320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001400| 63 64 70 6c 61 79 65 72 | 2d 32 2e 30 2f 62 69 74 |cdplayer|-2.0/bit|
|00001410| 6d 61 70 73 2f 73 6b 69 | 70 2e 62 69 74 00 00 00 |maps/ski|p.bit...|
|00001420| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001430| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001460| 00 00 00 00 31 30 30 36 | 34 34 20 00 20 20 20 31 |....1006|44 . 1|
|00001470| 34 36 20 00 20 20 20 20 | 20 30 20 00 20 20 20 20 |46 . | 0 . |
|00001480| 20 20 20 20 34 32 33 20 | 20 35 36 34 31 37 30 37 | 423 | 5641707|
|00001490| 31 32 36 20 20 31 34 33 | 35 33 00 20 30 00 00 00 |126 143|53. 0...|
|000014a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001500| 00 75 73 74 61 72 20 20 | 00 6d 61 72 6b 00 00 00 |.ustar |.mark...|
|00001510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001520| 00 00 00 00 00 00 00 00 | 00 72 6f 6f 74 00 00 00 |........|.root...|
|00001530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001600| 23 64 65 66 69 6e 65 20 | 73 6b 69 70 5f 77 69 64 |#define |skip_wid|
|00001610| 74 68 20 31 36 0a 23 64 | 65 66 69 6e 65 20 73 6b |th 16.#d|efine sk|
|00001620| 69 70 5f 68 65 69 67 68 | 74 20 31 36 0a 73 74 61 |ip_heigh|t 16.sta|
|00001630| 74 69 63 20 63 68 61 72 | 20 73 6b 69 70 5f 62 69 |tic char| skip_bi|
|00001640| 74 73 5b 5d 20 3d 20 7b | 0a 20 20 20 30 78 30 30 |ts[] = {|. 0x00|
|00001650| 2c 20 30 78 30 30 2c 20 | 30 78 30 30 2c 20 30 78 |, 0x00, |0x00, 0x|
|00001660| 30 30 2c 20 30 78 30 30 | 2c 20 30 78 30 30 2c 20 |00, 0x00|, 0x00, |
|00001670| 30 78 30 30 2c 20 30 78 | 30 30 2c 20 30 78 30 30 |0x00, 0x|00, 0x00|
|00001680| 2c 20 30 78 65 30 2c 20 | 30 78 38 36 2c 20 30 78 |, 0xe0, |0x86, 0x|
|00001690| 61 31 2c 0a 20 20 20 30 | 78 39 61 2c 20 30 78 61 |a1,. 0|x9a, 0xa|
|000016a0| 36 2c 20 30 78 65 32 2c | 20 30 78 62 38 2c 20 30 |6, 0xe2,| 0xb8, 0|
|000016b0| 78 65 32 2c 20 30 78 62 | 38 2c 20 30 78 39 61 2c |xe2, 0xb|8, 0x9a,|
|000016c0| 20 30 78 61 36 2c 20 30 | 78 38 36 2c 20 30 78 61 | 0xa6, 0|x86, 0xa|
|000016d0| 31 2c 20 30 78 30 30 2c | 20 30 78 65 30 2c 0a 20 |1, 0x00,| 0xe0,. |
|000016e0| 20 20 30 78 30 30 2c 20 | 30 78 30 30 2c 20 30 78 | 0x00, |0x00, 0x|
|000016f0| 30 30 2c 20 30 78 30 30 | 2c 20 30 78 30 30 2c 20 |00, 0x00|, 0x00, |
|00001700| 30 78 30 30 2c 20 30 78 | 30 30 2c 20 30 78 30 30 |0x00, 0x|00, 0x00|
|00001710| 7d 3b 0a 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |};......|........|
|00001720| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001780| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001800| 63 64 70 6c 61 79 65 72 | 2d 32 2e 30 2f 62 69 74 |cdplayer|-2.0/bit|
|00001810| 6d 61 70 73 2f 73 74 6f | 70 2e 62 69 74 00 00 00 |maps/sto|p.bit...|
|00001820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001860| 00 00 00 00 31 30 30 36 | 34 34 20 00 20 20 20 31 |....1006|44 . 1|
|00001870| 34 36 20 00 20 20 20 20 | 20 30 20 00 20 20 20 20 |46 . | 0 . |
|00001880| 20 20 20 20 34 32 33 20 | 20 35 36 34 31 37 30 37 | 423 | 5641707|
|00001890| 31 32 36 20 20 31 34 33 | 37 32 00 20 30 00 00 00 |126 143|72. 0...|
|000018a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000018b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000018c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000018d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000018e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000018f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001900| 00 75 73 74 61 72 20 20 | 00 6d 61 72 6b 00 00 00 |.ustar |.mark...|
|00001910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001920| 00 00 00 00 00 00 00 00 | 00 72 6f 6f 74 00 00 00 |........|.root...|
|00001930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a00| 23 64 65 66 69 6e 65 20 | 73 74 6f 70 5f 77 69 64 |#define |stop_wid|
|00001a10| 74 68 20 31 36 0a 23 64 | 65 66 69 6e 65 20 73 74 |th 16.#d|efine st|
|00001a20| 6f 70 5f 68 65 69 67 68 | 74 20 31 36 0a 73 74 61 |op_heigh|t 16.sta|
|00001a30| 74 69 63 20 63 68 61 72 | 20 73 74 6f 70 5f 62 69 |tic char| stop_bi|
|00001a40| 74 73 5b 5d 20 3d 20 7b | 0a 20 20 20 30 78 30 30 |ts[] = {|. 0x00|
|00001a50| 2c 20 30 78 30 30 2c 20 | 30 78 30 30 2c 20 30 78 |, 0x00, |0x00, 0x|
|00001a60| 30 30 2c 20 30 78 30 30 | 2c 20 30 78 30 30 2c 20 |00, 0x00|, 0x00, |
|00001a70| 30 78 30 30 2c 20 30 78 | 30 30 2c 20 30 78 30 30 |0x00, 0x|00, 0x00|
|00001a80| 2c 20 30 78 30 30 2c 20 | 30 78 65 30 2c 20 30 78 |, 0x00, |0xe0, 0x|
|00001a90| 30 37 2c 0a 20 20 20 30 | 78 65 30 2c 20 30 78 30 |07,. 0|xe0, 0x0|
|00001aa0| 37 2c 20 30 78 65 30 2c | 20 30 78 30 37 2c 20 30 |7, 0xe0,| 0x07, 0|
|00001ab0| 78 65 30 2c 20 30 78 30 | 37 2c 20 30 78 65 30 2c |xe0, 0x0|7, 0xe0,|
|00001ac0| 20 30 78 30 37 2c 20 30 | 78 65 30 2c 20 30 78 30 | 0x07, 0|xe0, 0x0|
|00001ad0| 37 2c 20 30 78 30 30 2c | 20 30 78 30 30 2c 0a 20 |7, 0x00,| 0x00,. |
|00001ae0| 20 20 30 78 30 30 2c 20 | 30 78 30 30 2c 20 30 78 | 0x00, |0x00, 0x|
|00001af0| 30 30 2c 20 30 78 30 30 | 2c 20 30 78 30 30 2c 20 |00, 0x00|, 0x00, |
|00001b00| 30 78 30 30 2c 20 30 78 | 30 30 2c 20 30 78 30 30 |0x00, 0x|00, 0x00|
|00001b10| 7d 3b 0a 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |};......|........|
|00001b20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c00| 63 64 70 6c 61 79 65 72 | 2d 32 2e 30 2f 73 72 63 |cdplayer|-2.0/src|
|00001c10| 2f 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |/.......|........|
|00001c20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c60| 00 00 00 00 20 34 30 37 | 35 35 20 00 20 20 20 31 |.... 407|55 . 1|
|00001c70| 34 36 20 00 20 20 20 20 | 20 30 20 00 20 20 20 20 |46 . | 0 . |
|00001c80| 20 20 20 20 20 20 30 20 | 20 35 36 34 35 34 31 32 | 0 | 5645412|
|00001c90| 31 32 30 20 20 31 31 37 | 35 30 00 20 35 00 00 00 |120 117|50. 5...|
|00001ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d00| 00 75 73 74 61 72 20 20 | 00 6d 61 72 6b 00 00 00 |.ustar |.mark...|
|00001d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d20| 00 00 00 00 00 00 00 00 | 00 72 6f 6f 74 00 00 00 |........|.root...|
|00001d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e00| 63 64 70 6c 61 79 65 72 | 2d 32 2e 30 2f 73 72 63 |cdplayer|-2.0/src|
|00001e10| 2f 63 64 70 6c 61 79 65 | 72 2e 68 00 00 00 00 00 |/cdplaye|r.h.....|
|00001e20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e60| 00 00 00 00 31 30 30 36 | 34 34 20 00 20 20 20 31 |....1006|44 . 1|
|00001e70| 34 36 20 00 20 20 20 20 | 20 30 20 00 20 20 20 20 |46 . | 0 . |
|00001e80| 20 20 20 20 37 34 33 20 | 20 35 36 34 35 34 31 31 | 743 | 5645411|
|00001e90| 31 36 33 20 20 31 34 30 | 31 33 00 20 30 00 00 00 |163 140|13. 0...|
|00001ea0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001eb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ec0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ed0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f00| 00 75 73 74 61 72 20 20 | 00 6d 61 72 6b 00 00 00 |.ustar |.mark...|
|00001f10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f20| 00 00 00 00 00 00 00 00 | 00 72 6f 6f 74 00 00 00 |........|.root...|
|00001f30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001fa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001fb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002000| 74 79 70 65 64 65 66 20 | 75 6e 69 6f 6e 20 7b 0a |typedef |union {.|
|00002010| 20 20 20 20 63 68 61 72 | 20 20 20 20 2a 73 74 72 | char| *str|
|00002020| 69 6e 67 3b 20 20 20 20 | 20 2f 2a 20 73 74 72 69 |ing; | /* stri|
|00002030| 6e 67 20 62 75 66 66 65 | 72 20 2a 2f 0a 20 20 20 |ng buffe|r */. |
|00002040| 20 69 6e 74 20 20 20 20 | 63 6d 64 3b 20 20 20 20 | int |cmd; |
|00002050| 20 20 20 20 20 20 2f 2a | 20 63 6f 6d 6d 61 6e 64 | /*| command|
|00002060| 20 76 61 6c 75 65 20 2a | 2f 0a 20 20 20 20 69 6e | value *|/. in|
|00002070| 74 20 20 20 20 6e 75 6d | 3b 09 09 20 2f 2a 20 6e |t num|;.. /* n|
|00002080| 75 6d 62 65 72 20 76 61 | 6c 75 65 20 2a 2f 0a 7d |umber va|lue */.}|
|00002090| 20 59 59 53 54 59 50 45 | 3b 0a 23 64 65 66 69 6e | YYSTYPE|;.#defin|
|000020a0| 65 09 44 45 56 53 54 52 | 49 4e 47 09 32 35 38 0a |e.DEVSTR|ING.258.|
|000020b0| 23 64 65 66 69 6e 65 09 | 43 4d 44 5f 50 4c 41 59 |#define.|CMD_PLAY|
|000020c0| 09 32 35 39 0a 23 64 65 | 66 69 6e 65 09 43 4d 44 |.259.#de|fine.CMD|
|000020d0| 5f 53 54 4f 50 09 32 36 | 30 0a 23 64 65 66 69 6e |_STOP.26|0.#defin|
|000020e0| 65 09 43 4d 44 5f 49 4e | 46 4f 09 32 36 31 0a 23 |e.CMD_IN|FO.261.#|
|000020f0| 64 65 66 69 6e 65 09 43 | 4d 44 5f 50 41 55 53 45 |define.C|MD_PAUSE|
|00002100| 09 32 36 32 0a 23 64 65 | 66 69 6e 65 09 43 4d 44 |.262.#de|fine.CMD|
|00002110| 5f 52 45 53 55 4d 45 09 | 32 36 33 0a 23 64 65 66 |_RESUME.|263.#def|
|00002120| 69 6e 65 09 43 4d 44 5f | 53 54 41 54 55 53 09 32 |ine.CMD_|STATUS.2|
|00002130| 36 34 0a 23 64 65 66 69 | 6e 65 09 43 4d 44 5f 45 |64.#defi|ne.CMD_E|
|00002140| 4a 45 43 54 09 32 36 35 | 0a 23 64 65 66 69 6e 65 |JECT.265|.#define|
|00002150| 09 43 4d 44 5f 56 4f 4c | 55 4d 45 09 32 36 36 0a |.CMD_VOL|UME.266.|
|00002160| 23 64 65 66 69 6e 65 09 | 43 4d 44 5f 53 4b 49 50 |#define.|CMD_SKIP|
|00002170| 09 32 36 37 0a 23 64 65 | 66 69 6e 65 09 43 4d 44 |.267.#de|fine.CMD|
|00002180| 5f 44 45 56 49 43 45 09 | 32 36 38 0a 23 64 65 66 |_DEVICE.|268.#def|
|00002190| 69 6e 65 09 43 4d 44 5f | 55 53 41 47 45 09 32 36 |ine.CMD_|USAGE.26|
|000021a0| 39 0a 23 64 65 66 69 6e | 65 09 43 4d 44 5f 54 4b |9.#defin|e.CMD_TK|
|000021b0| 43 44 09 32 37 30 0a 23 | 64 65 66 69 6e 65 09 4e |CD.270.#|define.N|
|000021c0| 55 4d 42 45 52 09 32 37 | 31 0a 0a 0a 65 78 74 65 |UMBER.27|1...exte|
|000021d0| 72 6e 20 59 59 53 54 59 | 50 45 20 79 79 6c 76 61 |rn YYSTY|PE yylva|
|000021e0| 6c 3b 0a 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |l;......|........|
|000021f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002200| 63 64 70 6c 61 79 65 72 | 2d 32 2e 30 2f 73 72 63 |cdplayer|-2.0/src|
|00002210| 2f 63 64 70 6c 61 79 65 | 72 2e 6c 00 00 00 00 00 |/cdplaye|r.l.....|
|00002220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002260| 00 00 00 00 31 30 30 36 | 34 34 20 00 20 20 20 31 |....1006|44 . 1|
|00002270| 34 36 20 00 20 20 20 20 | 20 30 20 00 20 20 20 20 |46 . | 0 . |
|00002280| 20 20 20 33 34 34 36 20 | 20 35 36 33 30 37 36 36 | 3446 | 5630766|
|00002290| 36 32 37 20 20 31 34 30 | 35 36 00 20 30 00 00 00 |627 140|56. 0...|
|000022a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002300| 00 75 73 74 61 72 20 20 | 00 6d 61 72 6b 00 00 00 |.ustar |.mark...|
|00002310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002320| 00 00 00 00 00 00 00 00 | 00 72 6f 6f 74 00 00 00 |........|.root...|
|00002330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002400| 25 7b 0a 23 69 6e 63 6c | 75 64 65 20 3c 73 74 72 |%{.#incl|ude <str|
|00002410| 69 6e 67 2e 68 3e 0a 23 | 69 6e 63 6c 75 64 65 20 |ing.h>.#|include |
|00002420| 22 63 64 70 6c 61 79 65 | 72 2e 68 22 0a 0a 23 69 |"cdplaye|r.h"..#i|
|00002430| 66 64 65 66 20 55 53 45 | 5f 46 4c 45 58 0a 23 75 |fdef USE|_FLEX.#u|
|00002440| 6e 64 65 66 20 59 59 5f | 49 4e 50 55 54 0a 23 64 |ndef YY_|INPUT.#d|
|00002450| 65 66 69 6e 65 20 59 59 | 5f 49 4e 50 55 54 28 62 |efine YY|_INPUT(b|
|00002460| 2c 72 2c 6d 73 29 20 28 | 72 3d 6d 79 5f 79 79 69 |,r,ms) (|r=my_yyi|
|00002470| 6e 70 75 74 28 62 2c 6d | 73 29 29 0a 23 65 6c 73 |nput(b,m|s)).#els|
|00002480| 65 0a 23 75 6e 64 65 66 | 20 69 6e 70 75 74 0a 23 |e.#undef| input.#|
|00002490| 64 65 66 69 6e 65 20 69 | 6e 70 75 74 20 6d 79 5f |define i|nput my_|
|000024a0| 79 79 69 6e 70 75 74 0a | 23 65 6e 64 69 66 0a 0a |yyinput.|#endif..|
|000024b0| 2f 2a 0a 20 2a 20 53 69 | 6e 63 65 20 77 65 20 61 |/*. * Si|nce we a|
|000024c0| 72 65 20 6f 6e 6c 79 20 | 72 65 61 64 69 6e 67 20 |re only |reading |
|000024d0| 74 68 65 20 63 6f 6d 6d | 61 6e 64 20 6c 69 6e 65 |the comm|and line|
|000024e0| 2c 20 77 65 0a 20 2a 20 | 74 65 6c 6c 20 74 68 65 |, we. * |tell the|
|000024f0| 20 73 63 61 6e 6e 65 72 | 20 74 6f 20 4f 4e 4c 59 | scanner| to ONLY|
|00002500| 20 75 73 65 20 74 68 65 | 20 66 69 72 73 74 20 32 | use the| first 2|
|00002510| 35 36 20 63 68 61 72 61 | 63 74 65 72 73 0a 20 2a |56 chara|cters. *|
|00002520| 2f 0a 23 75 6e 64 65 66 | 20 59 59 5f 42 55 46 5f |/.#undef| YY_BUF_|
|00002530| 53 49 5a 45 0a 23 64 65 | 66 69 6e 65 20 59 59 5f |SIZE.#de|fine YY_|
|00002540| 42 55 46 5f 53 49 5a 45 | 20 35 31 32 0a 23 75 6e |BUF_SIZE| 512.#un|
|00002550| 64 65 66 20 59 59 5f 52 | 45 41 44 5f 42 55 46 5f |def YY_R|EAD_BUF_|
|00002560| 53 49 5a 45 0a 23 64 65 | 66 69 6e 65 20 59 59 5f |SIZE.#de|fine YY_|
|00002570| 52 45 41 44 5f 42 55 46 | 5f 53 49 5a 45 20 32 35 |READ_BUF|_SIZE 25|
|00002580| 36 0a 0a 25 7d 0a 0a 77 | 73 20 20 20 20 20 20 20 |6..%}..w|s |
|00002590| 20 5b 20 5c 74 5d 2b 0a | 6e 75 6d 62 65 72 20 20 | [ \t]+.|number |
|000025a0| 20 20 5b 30 2d 39 5d 2b | 0a 0a 25 73 20 44 45 56 | [0-9]+|..%s DEV|
|000025b0| 4e 41 4d 45 0a 25 25 0a | 0a 7b 77 73 7d 09 3b 0a |NAME.%%.|.{ws}.;.|
|000025c0| 7b 6e 75 6d 62 65 72 7d | 20 20 7b 20 0a 20 20 20 |{number}| { . |
|000025d0| 20 20 20 20 20 20 20 20 | 20 79 79 6c 76 61 6c 2e | | yylval.|
|000025e0| 6e 75 6d 3d 61 74 6f 69 | 28 79 79 74 65 78 74 29 |num=atoi|(yytext)|
|000025f0| 3b 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 72 65 |;. | re|
|00002600| 74 75 72 6e 20 4e 55 4d | 42 45 52 3b 0a 20 20 20 |turn NUM|BER;. |
|00002610| 20 20 20 20 20 20 20 7d | 20 0a 3c 44 45 56 4e 41 | }| .<DEVNA|
|00002620| 4d 45 3e 5b 5e 20 5d 2b | 20 7b 20 0a 09 79 79 6c |ME>[^ ]+| { ..yyl|
|00002630| 76 61 6c 2e 73 74 72 69 | 6e 67 3d 73 74 72 64 75 |val.stri|ng=strdu|
|00002640| 70 28 79 79 74 65 78 74 | 29 3b 0a 09 42 45 47 49 |p(yytext|);..BEGI|
|00002650| 4e 20 30 3b 0a 09 72 65 | 74 75 72 6e 20 28 44 45 |N 0;..re|turn (DE|
|00002660| 56 53 54 52 49 4e 47 29 | 3b 20 7d 0a 0a 22 2d 68 |VSTRING)|; }.."-h|
|00002670| 22 20 7c 0a 22 2d 2d 68 | 65 6c 70 22 20 7c 0a 68 |" |."--h|elp" |.h|
|00002680| 65 6c 70 20 20 20 20 20 | 72 65 74 75 72 6e 20 28 |elp |return (|
|00002690| 43 4d 44 5f 55 53 41 47 | 45 29 3b 0a 0a 22 2d 64 |CMD_USAG|E);.."-d|
|000026a0| 22 20 7c 0a 22 2d 2d 64 | 65 76 69 63 65 22 20 7c |" |."--d|evice" ||
|000026b0| 0a 64 65 76 69 63 65 20 | 20 7b 20 0a 09 42 45 47 |.device | { ..BEG|
|000026c0| 49 4e 20 44 45 56 4e 41 | 4d 45 3b 0a 09 72 65 74 |IN DEVNA|ME;..ret|
|000026d0| 75 72 6e 20 28 43 4d 44 | 5f 44 45 56 49 43 45 29 |urn (CMD|_DEVICE)|
|000026e0| 3b 0a 09 7d 0a 0a 22 2d | 74 22 20 7c 0a 22 2d 2d |;..}.."-|t" |."--|
|000026f0| 74 6b 63 64 22 20 7c 0a | 22 74 6b 63 64 22 09 20 |tkcd" |.|"tkcd". |
|00002700| 72 65 74 75 72 6e 28 43 | 4d 44 5f 54 4b 43 44 29 |return(C|MD_TKCD)|
|00002710| 3b 0a 0a 22 2d 70 22 20 | 7c 0a 22 2d 2d 70 6c 61 |;.."-p" ||."--pla|
|00002720| 79 22 20 7c 0a 70 6c 61 | 79 09 20 72 65 74 75 72 |y" |.pla|y. retur|
|00002730| 6e 28 43 4d 44 5f 50 4c | 41 59 29 3b 20 0a 0a 22 |n(CMD_PL|AY); .."|
|00002740| 2d 73 22 20 7c 0a 22 2d | 2d 73 74 6f 70 22 20 7c |-s" |."-|-stop" ||
|00002750| 0a 73 74 6f 70 09 20 72 | 65 74 75 72 6e 28 43 4d |.stop. r|eturn(CM|
|00002760| 44 5f 53 54 4f 50 29 3b | 0a 0a 22 2d 69 22 20 7c |D_STOP);|.."-i" ||
|00002770| 0a 22 2d 2d 69 6e 66 6f | 22 20 7c 0a 69 6e 66 6f |."--info|" |.info|
|00002780| 09 20 72 65 74 75 72 6e | 28 43 4d 44 5f 49 4e 46 |. return|(CMD_INF|
|00002790| 4f 29 3b 20 0a 0a 22 2d | 61 22 20 7c 0a 22 2d 2d |O); .."-|a" |."--|
|000027a0| 70 61 75 73 65 22 20 7c | 0a 70 61 75 73 65 09 7b |pause" ||.pause.{|
|000027b0| 20 72 65 74 75 72 6e 28 | 43 4d 44 5f 50 41 55 53 | return(|CMD_PAUS|
|000027c0| 45 29 3b 20 7d 0a 0a 22 | 2d 72 22 20 7c 0a 22 2d |E); }.."|-r" |."-|
|000027d0| 2d 72 65 73 75 6d 65 22 | 20 7c 0a 72 65 73 75 6d |-resume"| |.resum|
|000027e0| 65 09 7b 20 72 65 74 75 | 72 6e 28 43 4d 44 5f 52 |e.{ retu|rn(CMD_R|
|000027f0| 45 53 55 4d 45 29 3b 20 | 7d 0a 0a 22 2d 65 22 20 |ESUME); |}.."-e" |
|00002800| 7c 0a 22 2d 2d 65 6a 65 | 63 74 22 20 7c 0a 65 6a ||."--eje|ct" |.ej|
|00002810| 65 63 74 09 7b 20 72 65 | 74 75 72 6e 28 43 4d 44 |ect.{ re|turn(CMD|
|00002820| 5f 45 4a 45 43 54 29 3b | 20 7d 0a 0a 22 2d 76 22 |_EJECT);| }.."-v"|
|00002830| 20 7c 0a 22 2d 2d 76 6f | 6c 75 6d 65 22 20 7c 0a | |."--vo|lume" |.|
|00002840| 76 6f 6c 20 7c 0a 76 6f | 6c 75 6d 65 09 7b 20 72 |vol |.vo|lume.{ r|
|00002850| 65 74 75 72 6e 28 43 4d | 44 5f 56 4f 4c 55 4d 45 |eturn(CM|D_VOLUME|
|00002860| 29 3b 20 7d 0a 0a 22 2d | 6b 22 20 7c 0a 22 2d 2d |); }.."-|k" |."--|
|00002870| 73 6b 69 70 22 20 7c 0a | 73 6b 69 70 09 72 65 74 |skip" |.|skip.ret|
|00002880| 75 72 6e 28 43 4d 44 5f | 53 4b 49 50 29 3b 0a 0a |urn(CMD_|SKIP);..|
|00002890| 22 2d 75 22 20 7c 0a 22 | 2d 2d 73 74 61 74 75 73 |"-u" |."|--status|
|000028a0| 22 20 7c 0a 73 74 61 74 | 75 73 20 20 72 65 74 75 |" |.stat|us retu|
|000028b0| 72 6e 28 43 4d 44 5f 53 | 54 41 54 55 53 29 3b 0a |rn(CMD_S|TATUS);.|
|000028c0| 0a 2e 09 7b 20 72 65 74 | 75 72 6e 28 79 79 74 65 |...{ ret|urn(yyte|
|000028d0| 78 74 5b 30 5d 29 3b 20 | 7d 0a 0a 25 25 0a 0a 65 |xt[0]); |}..%%..e|
|000028e0| 78 74 65 72 6e 20 63 68 | 61 72 20 63 6d 64 6c 69 |xtern ch|ar cmdli|
|000028f0| 6e 65 5b 5d 3b 0a 65 78 | 74 65 72 6e 20 69 6e 74 |ne[];.ex|tern int|
|00002900| 20 63 6d 64 6c 65 6e 3b | 0a 65 78 74 65 72 6e 20 | cmdlen;|.extern |
|00002910| 69 6e 74 20 63 6d 64 5f | 64 6f 6e 65 3b 0a 0a 2f |int cmd_|done;../|
|00002920| 2a 0a 20 2a 20 54 68 69 | 73 20 72 6f 75 74 69 6e |*. * Thi|s routin|
|00002930| 65 20 72 65 70 6c 61 63 | 65 64 20 74 68 65 20 6e |e replac|ed the n|
|00002940| 6f 72 6d 61 6c 20 79 79 | 69 6e 70 75 74 20 72 6f |ormal yy|input ro|
|00002950| 75 74 69 6e 65 20 61 6e | 64 20 74 61 6b 65 20 6f |utine an|d take o|
|00002960| 6e 6c 79 0a 20 2a 20 32 | 35 36 20 62 79 74 65 20 |nly. * 2|56 byte |
|00002970| 6f 66 20 69 6e 70 75 74 | 20 66 72 6f 6d 20 74 68 |of input| from th|
|00002980| 65 20 22 63 6f 6d 6d 61 | 6e 64 20 6c 69 6e 65 22 |e "comma|nd line"|
|00002990| 20 61 6e 64 20 73 65 6e | 64 73 20 69 74 20 74 68 | and sen|ds it th|
|000029a0| 72 6f 75 67 68 20 74 68 | 65 20 70 61 72 73 65 72 |rough th|e parser|
|000029b0| 2e 0a 20 2a 20 54 68 69 | 73 20 72 6f 75 74 69 6e |.. * Thi|s routin|
|000029c0| 65 20 69 73 20 63 61 6c | 6c 65 64 20 4f 4e 4c 59 |e is cal|led ONLY|
|000029d0| 20 6f 6e 63 65 20 62 65 | 63 61 75 73 65 20 74 68 | once be|cause th|
|000029e0| 65 20 73 65 63 6f 6e 64 | 20 74 69 6d 65 20 74 68 |e second| time th|
|000029f0| 72 6f 75 67 68 20 69 74 | 0a 20 2a 20 74 65 6c 6c |rough it|. * tell|
|00002a00| 73 20 74 68 65 20 70 61 | 72 73 65 72 20 74 68 65 |s the pa|rser the|
|00002a10| 72 65 20 69 73 20 6e 6f | 20 6d 6f 72 65 20 69 6e |re is no| more in|
|00002a20| 70 75 74 2e 0a 20 2a 2f | 0a 0a 23 69 66 64 65 66 |put.. */|..#ifdef|
|00002a30| 20 55 53 45 5f 46 4c 45 | 58 0a 69 6e 74 20 6d 79 | USE_FLE|X.int my|
|00002a40| 5f 79 79 69 6e 70 75 74 | 28 63 68 61 72 20 2a 62 |_yyinput|(char *b|
|00002a50| 75 66 2c 20 69 6e 74 20 | 6d 61 78 5f 73 69 7a 65 |uf, int |max_size|
|00002a60| 29 0a 7b 0a 09 69 66 20 | 28 21 63 6d 64 5f 64 6f |).{..if |(!cmd_do|
|00002a70| 6e 65 29 20 7b 0a 09 09 | 6d 65 6d 63 70 79 28 62 |ne) {...|memcpy(b|
|00002a80| 75 66 2c 63 6d 64 6c 69 | 6e 65 2c 63 6d 64 6c 65 |uf,cmdli|ne,cmdle|
|00002a90| 6e 29 3b 0a 09 09 63 6d | 64 5f 64 6f 6e 65 3d 31 |n);...cm|d_done=1|
|00002aa0| 3b 0a 09 09 72 65 74 75 | 72 6e 28 63 6d 64 6c 65 |;...retu|rn(cmdle|
|00002ab0| 6e 29 3b 0a 09 20 20 7d | 20 65 6c 73 65 20 7b 0a |n);.. }| else {.|
|00002ac0| 09 09 72 65 74 75 72 6e | 28 30 29 3b 0a 09 7d 0a |..return|(0);..}.|
|00002ad0| 7d 0a 0a 23 65 6c 73 65 | 0a 0a 69 6e 74 20 6d 79 |}..#else|..int my|
|00002ae0| 5f 79 79 69 6e 70 75 74 | 28 29 0a 7b 0a 09 73 74 |_yyinput|().{..st|
|00002af0| 61 74 69 63 20 63 68 61 | 72 20 2a 70 20 3d 20 26 |atic cha|r *p = &|
|00002b00| 63 6d 64 6c 69 6e 65 5b | 30 5d 3b 0a 0a 09 72 65 |cmdline[|0];...re|
|00002b10| 74 75 72 6e 28 2a 70 2b | 2b 29 3b 0a 7d 0a 0a 23 |turn(*p+|+);.}..#|
|00002b20| 65 6e 64 69 66 0a 00 00 | 00 00 00 00 00 00 00 00 |endif...|........|
|00002b30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c00| 63 64 70 6c 61 79 65 72 | 2d 32 2e 30 2f 73 72 63 |cdplayer|-2.0/src|
|00002c10| 2f 63 64 70 6c 61 79 65 | 72 2e 79 00 00 00 00 00 |/cdplaye|r.y.....|
|00002c20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c60| 00 00 00 00 31 30 30 36 | 34 34 20 00 20 20 20 31 |....1006|44 . 1|
|00002c70| 34 36 20 00 20 20 20 20 | 20 30 20 00 20 20 20 20 |46 . | 0 . |
|00002c80| 20 20 34 34 37 30 30 20 | 20 35 36 34 32 31 34 33 | 44700 | 5642143|
|00002c90| 32 36 34 20 20 31 34 30 | 37 36 00 20 30 00 00 00 |264 140|76. 0...|
|00002ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002cb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d00| 00 75 73 74 61 72 20 20 | 00 6d 61 72 6b 00 00 00 |.ustar |.mark...|
|00002d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d20| 00 00 00 00 00 00 00 00 | 00 72 6f 6f 74 00 00 00 |........|.root...|
|00002d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e00| 25 7b 0a 2f 2a 0a 20 2a | 20 20 20 43 44 70 6c 61 |%{./*. *| CDpla|
|00002e10| 79 65 72 20 32 2e 30 20 | 2d 20 63 6f 6d 6d 61 6e |yer 2.0 |- comman|
|00002e20| 64 20 6c 69 6e 65 20 41 | 75 64 69 6f 20 43 44 70 |d line A|udio CDp|
|00002e30| 6c 61 79 65 72 0a 20 2a | 20 20 20 43 6f 70 79 72 |layer. *| Copyr|
|00002e40| 69 67 68 74 20 28 43 29 | 20 31 39 39 33 2c 31 39 |ight (C)| 1993,19|
|00002e50| 39 34 20 4d 61 72 6b 20 | 42 75 63 6b 61 77 61 79 |94 Mark |Buckaway|
|00002e60| 20 28 6d 61 72 6b 40 64 | 61 74 61 73 6f 66 74 2e | (mark@d|atasoft.|
|00002e70| 63 6f 6d 29 0a 20 2a 0a | 20 2a 20 20 20 54 68 69 |com). *.| * Thi|
|00002e80| 73 20 70 72 6f 67 72 61 | 6d 20 69 73 20 66 72 65 |s progra|m is fre|
|00002e90| 65 20 73 6f 66 74 77 61 | 72 65 3b 20 79 6f 75 20 |e softwa|re; you |
|00002ea0| 63 61 6e 20 72 65 64 69 | 73 74 72 69 62 75 74 65 |can redi|stribute|
|00002eb0| 20 69 74 20 61 6e 64 2f | 6f 72 20 6d 6f 64 69 66 | it and/|or modif|
|00002ec0| 79 0a 20 2a 20 20 20 69 | 74 20 75 6e 64 65 72 20 |y. * i|t under |
|00002ed0| 74 68 65 20 74 65 72 6d | 73 20 6f 66 20 74 68 65 |the term|s of the|
|00002ee0| 20 47 4e 55 20 47 65 6e | 65 72 61 6c 20 50 75 62 | GNU Gen|eral Pub|
|00002ef0| 6c 69 63 20 4c 69 63 65 | 6e 73 65 20 61 73 20 70 |lic Lice|nse as p|
|00002f00| 75 62 6c 69 73 68 65 64 | 20 62 79 0a 20 2a 20 20 |ublished| by. * |
|00002f10| 20 74 68 65 20 46 72 65 | 65 20 53 6f 66 74 77 61 | the Fre|e Softwa|
|00002f20| 72 65 20 46 6f 75 6e 64 | 61 74 69 6f 6e 3b 20 65 |re Found|ation; e|
|00002f30| 69 74 68 65 72 20 76 65 | 72 73 69 6f 6e 20 32 20 |ither ve|rsion 2 |
|00002f40| 6f 66 20 74 68 65 20 4c | 69 63 65 6e 73 65 2c 20 |of the L|icense, |
|00002f50| 6f 72 0a 20 2a 20 20 20 | 28 61 74 20 79 6f 75 72 |or. * |(at your|
|00002f60| 20 6f 70 74 69 6f 6e 29 | 20 61 6e 79 20 6c 61 74 | option)| any lat|
|00002f70| 65 72 20 76 65 72 73 69 | 6f 6e 2e 0a 20 2a 0a 20 |er versi|on.. *. |
|00002f80| 2a 20 20 20 54 68 69 73 | 20 70 72 6f 67 72 61 6d |* This| program|
|00002f90| 20 69 73 20 64 69 73 74 | 72 69 62 75 74 65 64 20 | is dist|ributed |
|00002fa0| 69 6e 20 74 68 65 20 68 | 6f 70 65 20 74 68 61 74 |in the h|ope that|
|00002fb0| 20 69 74 20 77 69 6c 6c | 20 62 65 20 75 73 65 66 | it will| be usef|
|00002fc0| 75 6c 2c 0a 20 2a 20 20 | 20 62 75 74 20 57 49 54 |ul,. * | but WIT|
|00002fd0| 48 4f 55 54 20 41 4e 59 | 20 57 41 52 52 41 4e 54 |HOUT ANY| WARRANT|
|00002fe0| 59 3b 20 77 69 74 68 6f | 75 74 20 65 76 65 6e 20 |Y; witho|ut even |
|00002ff0| 74 68 65 20 69 6d 70 6c | 69 65 64 20 77 61 72 72 |the impl|ied warr|
|00003000| 61 6e 74 79 20 6f 66 0a | 20 2a 20 20 20 4d 45 52 |anty of.| * MER|
|00003010| 43 48 41 4e 54 41 42 49 | 4c 49 54 59 20 6f 72 20 |CHANTABI|LITY or |
|00003020| 46 49 54 4e 45 53 53 20 | 46 4f 52 20 41 20 50 41 |FITNESS |FOR A PA|
|00003030| 52 54 49 43 55 4c 41 52 | 20 50 55 52 50 4f 53 45 |RTICULAR| PURPOSE|
|00003040| 2e 20 20 53 65 65 20 74 | 68 65 0a 20 2a 20 20 20 |. See t|he. * |
|00003050| 47 4e 55 20 47 65 6e 65 | 72 61 6c 20 50 75 62 6c |GNU Gene|ral Publ|
|00003060| 69 63 20 4c 69 63 65 6e | 73 65 20 66 6f 72 20 6d |ic Licen|se for m|
|00003070| 6f 72 65 20 64 65 74 61 | 69 6c 73 2e 0a 20 2a 0a |ore deta|ils.. *.|
|00003080| 20 2a 20 20 20 59 6f 75 | 20 73 68 6f 75 6c 64 20 | * You| should |
|00003090| 68 61 76 65 20 72 65 63 | 65 69 76 65 64 20 61 20 |have rec|eived a |
|000030a0| 63 6f 70 79 20 6f 66 20 | 74 68 65 20 47 4e 55 20 |copy of |the GNU |
|000030b0| 47 65 6e 65 72 61 6c 20 | 50 75 62 6c 69 63 20 4c |General |Public L|
|000030c0| 69 63 65 6e 73 65 0a 20 | 2a 20 20 20 61 6c 6f 6e |icense. |* alon|
|000030d0| 67 20 77 69 74 68 20 74 | 68 69 73 20 70 72 6f 67 |g with t|his prog|
|000030e0| 72 61 6d 3b 20 69 66 20 | 6e 6f 74 2c 20 77 72 69 |ram; if |not, wri|
|000030f0| 74 65 20 74 6f 20 74 68 | 65 20 46 72 65 65 20 53 |te to th|e Free S|
|00003100| 6f 66 74 77 61 72 65 0a | 20 2a 20 20 20 46 6f 75 |oftware.| * Fou|
|00003110| 6e 64 61 74 69 6f 6e 2c | 20 49 6e 63 2e 2c 20 36 |ndation,| Inc., 6|
|00003120| 37 35 20 4d 61 73 73 20 | 41 76 65 2c 20 43 61 6d |75 Mass |Ave, Cam|
|00003130| 62 72 69 64 67 65 2c 20 | 4d 41 20 30 32 31 33 39 |bridge, |MA 02139|
|00003140| 2c 20 55 53 41 2e 0a 20 | 2a 2f 0a 23 69 6e 63 6c |, USA.. |*/.#incl|
|00003150| 75 64 65 20 3c 73 74 64 | 69 6f 2e 68 3e 0a 23 69 |ude <std|io.h>.#i|
|00003160| 6e 63 6c 75 64 65 20 3c | 73 79 73 2f 69 6f 63 74 |nclude <|sys/ioct|
|00003170| 6c 2e 68 3e 0a 23 69 6e | 63 6c 75 64 65 20 3c 73 |l.h>.#in|clude <s|
|00003180| 79 73 2f 66 69 6c 65 2e | 68 3e 0a 23 69 6e 63 6c |ys/file.|h>.#incl|
|00003190| 75 64 65 20 3c 73 79 73 | 2f 74 79 70 65 73 2e 68 |ude <sys|/types.h|
|000031a0| 3e 0a 23 69 6e 63 6c 75 | 64 65 20 3c 66 63 6e 74 |>.#inclu|de <fcnt|
|000031b0| 6c 2e 68 3e 0a 23 69 6e | 63 6c 75 64 65 20 3c 73 |l.h>.#in|clude <s|
|000031c0| 74 72 69 6e 67 2e 68 3e | 0a 23 69 6e 63 6c 75 64 |tring.h>|.#includ|
|000031d0| 65 20 3c 65 72 72 6e 6f | 2e 68 3e 0a 23 69 6e 63 |e <errno|.h>.#inc|
|000031e0| 6c 75 64 65 20 3c 73 79 | 73 2f 70 61 72 61 6d 2e |lude <sy|s/param.|
|000031f0| 68 3e 0a 23 69 6e 63 6c | 75 64 65 20 3c 73 74 64 |h>.#incl|ude <std|
|00003200| 6c 69 62 2e 68 3e 0a 0a | 23 69 66 6e 64 65 66 20 |lib.h>..|#ifndef |
|00003210| 43 4f 48 45 52 45 4e 54 | 0a 23 69 6e 63 6c 75 64 |COHERENT|.#includ|
|00003220| 65 20 3c 6d 6e 74 65 6e | 74 2e 68 3e 0a 23 65 6e |e <mnten|t.h>.#en|
|00003230| 64 69 66 0a 0a 2f 2a 0a | 20 2a 20 4c 69 6e 75 78 |dif../*.| * Linux|
|00003240| 20 73 74 6f 72 65 73 20 | 63 64 72 6f 6d 2e 68 20 | stores |cdrom.h |
|00003250| 69 6e 20 74 68 65 20 6c | 69 6e 75 78 20 69 6e 63 |in the l|inux inc|
|00003260| 6c 75 64 65 20 64 69 72 | 65 63 74 6f 72 79 0a 20 |lude dir|ectory. |
|00003270| 2a 20 77 68 69 6c 65 20 | 61 6c 6c 20 6f 74 68 65 |* while |all othe|
|00003280| 72 73 20 28 49 27 6d 20 | 74 6f 6c 64 29 20 73 74 |rs (I'm |told) st|
|00003290| 6f 72 65 20 63 64 72 6f | 6d 2e 68 20 69 6e 20 74 |ore cdro|m.h in t|
|000032a0| 68 65 20 73 79 73 20 69 | 6e 63 6c 75 64 65 0a 20 |he sys i|nclude. |
|000032b0| 2a 20 64 69 72 65 63 74 | 6f 72 79 0a 20 2a 2f 0a |* direct|ory. */.|
|000032c0| 23 69 66 64 65 66 20 4c | 49 4e 55 58 0a 23 69 6e |#ifdef L|INUX.#in|
|000032d0| 63 6c 75 64 65 20 3c 6c | 69 6e 75 78 2f 63 64 72 |clude <l|inux/cdr|
|000032e0| 6f 6d 2e 68 3e 0a 23 65 | 6c 73 65 0a 23 69 6e 63 |om.h>.#e|lse.#inc|
|000032f0| 6c 75 64 65 20 3c 73 79 | 73 2f 63 64 72 6f 6d 2e |lude <sy|s/cdrom.|
|00003300| 68 3e 0a 23 65 6e 64 69 | 66 0a 0a 2f 2a 20 0a 20 |h>.#endi|f../* . |
|00003310| 2a 20 44 65 66 69 6e 65 | 20 4d 41 58 50 41 54 48 |* Define| MAXPATH|
|00003320| 4c 45 4e 20 66 6f 72 20 | 73 79 73 74 65 6d 73 20 |LEN for |systems |
|00003330| 74 68 61 74 20 64 6f 6e | 27 74 20 68 61 76 65 20 |that don|'t have |
|00003340| 69 74 2e 0a 20 2a 2f 0a | 23 69 66 6e 64 65 66 20 |it.. */.|#ifndef |
|00003350| 4d 41 58 50 41 54 48 4c | 45 4e 0a 23 64 65 66 69 |MAXPATHL|EN.#defi|
|00003360| 6e 65 20 4d 41 58 50 41 | 54 48 4c 45 4e 20 31 30 |ne MAXPA|THLEN 10|
|00003370| 32 34 0a 23 65 6e 64 69 | 66 0a 0a 2f 2a 0a 20 2a |24.#endi|f../*. *|
|00003380| 20 4e 45 43 20 43 44 52 | 4f 4d 27 73 20 64 6f 20 | NEC CDR|OM's do |
|00003390| 73 74 72 61 6e 67 65 20 | 74 68 69 6e 67 73 20 73 |strange |things s|
|000033a0| 6f 20 77 65 20 72 65 64 | 65 66 69 6e 65 20 74 68 |o we red|efine th|
|000033b0| 65 20 69 6f 63 74 6c 20 | 63 6f 6d 6d 61 6e 64 20 |e ioctl |command |
|000033c0| 74 6f 20 75 73 65 0a 20 | 2a 20 74 68 65 20 73 70 |to use. |* the sp|
|000033d0| 65 63 69 61 6c 20 6e 65 | 63 5f 69 6f 63 74 6c 20 |ecial ne|c_ioctl |
|000033e0| 66 75 6e 63 74 69 6f 6e | 20 74 68 61 74 20 63 61 |function| that ca|
|000033f0| 6d 65 20 66 72 6f 6d 20 | 78 63 64 70 6c 61 79 65 |me from |xcdplaye|
|00003400| 72 0a 20 2a 2f 0a 23 69 | 66 64 65 66 20 4e 45 43 |r. */.#i|fdef NEC|
|00003410| 5f 43 44 52 4f 4d 0a 23 | 64 65 66 69 6e 65 20 69 |_CDROM.#|define i|
|00003420| 6f 63 74 6c 20 6e 65 63 | 5f 69 6f 63 74 6c 0a 23 |octl nec|_ioctl.#|
|00003430| 65 6e 64 69 66 0a 0a 2f | 2a 0a 20 2a 20 44 65 66 |endif../|*. * Def|
|00003440| 69 6e 65 20 63 6f 6e 73 | 74 61 6e 74 73 0a 20 2a |ine cons|tants. *|
|00003450| 2f 0a 0a 23 69 66 6e 64 | 65 66 20 54 52 55 45 0a |/..#ifnd|ef TRUE.|
|00003460| 23 64 65 66 69 6e 65 20 | 54 52 55 45 20 31 0a 23 |#define |TRUE 1.#|
|00003470| 65 6e 64 69 66 0a 0a 23 | 69 66 6e 64 65 66 20 46 |endif..#|ifndef F|
|00003480| 41 4c 53 45 0a 23 64 65 | 66 69 6e 65 20 46 41 4c |ALSE.#de|fine FAL|
|00003490| 53 45 20 30 0a 23 65 6e | 64 69 66 0a 0a 2f 2a 0a |SE 0.#en|dif../*.|
|000034a0| 20 2a 20 44 65 66 69 6e | 65 20 74 68 65 20 6d 61 | * Defin|e the ma|
|000034b0| 78 20 6e 75 6d 62 65 72 | 20 6f 66 20 63 68 61 72 |x number| of char|
|000034c0| 61 63 74 65 72 20 66 6f | 72 20 74 68 65 20 63 6f |acter fo|r the co|
|000034d0| 6d 6d 61 6e 64 20 6c 69 | 6e 65 20 61 72 67 75 6d |mmand li|ne argum|
|000034e0| 65 6e 74 73 2e 0a 20 2a | 20 54 68 69 73 20 69 73 |ents.. *| This is|
|000034f0| 20 75 73 65 64 20 74 6f | 20 61 6c 6c 6f 63 61 74 | used to| allocat|
|00003500| 65 20 74 68 65 20 62 75 | 66 66 65 72 20 66 6f 72 |e the bu|ffer for|
|00003510| 20 74 68 65 20 6c 65 78 | 65 72 20 69 6e 70 75 74 | the lex|er input|
|00003520| 20 72 6f 75 74 69 6e 65 | 2e 0a 20 2a 20 32 35 36 | routine|.. * 256|
|00003530| 20 73 68 6f 75 6c 64 20 | 62 65 20 4d 4f 52 45 20 | should |be MORE |
|00003540| 74 68 61 6e 20 65 6e 6f | 75 67 68 0a 20 2a 2f 0a |than eno|ugh. */.|
|00003550| 23 64 65 66 69 6e 65 20 | 4d 41 58 43 4d 44 4c 49 |#define |MAXCMDLI|
|00003560| 4e 45 20 32 35 36 0a 0a | 2f 2a 0a 20 2a 20 44 65 |NE 256..|/*. * De|
|00003570| 66 69 6e 65 20 74 68 65 | 20 74 69 6d 65 20 63 6f |fine the| time co|
|00003580| 6e 73 74 61 6e 74 2e 20 | 54 68 69 73 20 69 73 20 |nstant. |This is |
|00003590| 75 73 65 64 20 69 6e 20 | 63 61 6c 63 75 6c 61 74 |used in |calculat|
|000035a0| 69 6e 67 20 43 44 20 74 | 69 6d 65 73 2e 0a 20 2a |ing CD t|imes.. *|
|000035b0| 20 49 74 73 20 65 71 75 | 61 6c 20 74 6f 20 36 30 | Its equ|al to 60|
|000035c0| 2a 37 35 0a 20 2a 2f 0a | 0a 23 64 65 66 69 6e 65 |*75. */.|.#define|
|000035d0| 20 43 5f 54 49 4d 45 20 | 34 35 30 30 0a 0a 2f 2a | C_TIME |4500../*|
|000035e0| 0a 20 2a 20 44 65 66 69 | 6e 65 20 67 6c 6f 62 61 |. * Defi|ne globa|
|000035f0| 6c 20 76 61 72 69 61 62 | 6c 65 73 0a 20 2a 2f 0a |l variab|les. */.|
|00003600| 0a 63 68 61 72 20 63 64 | 5f 64 65 76 5b 4d 41 58 |.char cd|_dev[MAX|
|00003610| 50 41 54 48 4c 45 4e 5d | 3b 0a 63 68 61 72 20 2a |PATHLEN]|;.char *|
|00003620| 70 72 6f 67 6e 61 6d 65 | 3b 0a 63 68 61 72 20 63 |progname|;.char c|
|00003630| 6d 64 6c 69 6e 65 5b 4d | 41 58 43 4d 44 4c 49 4e |mdline[M|AXCMDLIN|
|00003640| 45 5d 3b 0a 69 6e 74 20 | 63 6d 64 5f 64 6f 6e 65 |E];.int |cmd_done|
|00003650| 3b 0a 69 6e 74 20 63 6d | 64 6c 65 6e 3b 0a 69 6e |;.int cm|dlen;.in|
|00003660| 74 20 66 2c 69 3b 0a 73 | 74 72 75 63 74 20 63 64 |t f,i;.s|truct cd|
|00003670| 72 6f 6d 5f 74 6f 63 68 | 64 72 20 74 6f 63 68 64 |rom_toch|dr tochd|
|00003680| 72 3b 0a 73 74 72 75 63 | 74 20 63 64 72 6f 6d 5f |r;.struc|t cdrom_|
|00003690| 74 6f 63 65 6e 74 72 79 | 20 74 6f 63 65 6e 74 72 |tocentry| tocentr|
|000036a0| 79 3b 0a 73 74 72 75 63 | 74 20 63 64 72 6f 6d 5f |y;.struc|t cdrom_|
|000036b0| 74 69 20 74 69 3b 0a 73 | 74 72 75 63 74 20 6d 6e |ti ti;.s|truct mn|
|000036c0| 74 65 6e 74 20 2a 6d 6e | 74 3b 0a 73 74 72 75 63 |tent *mn|t;.struc|
|000036d0| 74 20 63 64 72 6f 6d 5f | 73 75 62 63 68 6e 6c 20 |t cdrom_|subchnl |
|000036e0| 73 75 62 63 68 6e 6c 3b | 0a 73 74 72 75 63 74 20 |subchnl;|.struct |
|000036f0| 63 64 72 6f 6d 5f 76 6f | 6c 63 74 72 6c 20 76 6f |cdrom_vo|lctrl vo|
|00003700| 6c 63 74 72 6c 3b 09 0a | 75 6e 73 69 67 6e 65 64 |lctrl;..|unsigned|
|00003710| 20 69 6e 74 20 74 5f 74 | 68 69 73 74 72 6b 2c 74 | int t_t|histrk,t|
|00003720| 5f 6c 61 73 74 74 72 6b | 2c 74 5f 74 72 61 63 6b |_lasttrk|,t_track|
|00003730| 3b 0a 69 6e 74 20 63 64 | 72 6f 6d 6f 6b 3b 0a 69 |;.int cd|romok;.i|
|00003740| 6e 74 20 74 6b 63 64 3b | 0a 2f 2a 0a 20 2a 20 46 |nt tkcd;|./*. * F|
|00003750| 75 6e 63 74 69 6f 6e 20 | 64 65 63 6c 61 72 61 74 |unction |declarat|
|00003760| 69 6f 6e 73 0a 20 2a 2f | 0a 0a 76 6f 69 64 20 69 |ions. */|..void i|
|00003770| 6e 69 74 63 64 72 6f 6d | 28 29 3b 0a 76 6f 69 64 |nitcdrom|();.void|
|00003780| 20 63 64 5f 70 6c 61 79 | 28 69 6e 74 20 63 6d 64 | cd_play|(int cmd|
|00003790| 29 3b 0a 76 6f 69 64 20 | 63 64 5f 70 61 75 73 65 |);.void |cd_pause|
|000037a0| 64 28 29 3b 0a 76 6f 69 | 64 20 63 64 5f 73 74 6f |d();.voi|d cd_sto|
|000037b0| 70 28 29 3b 0a 76 6f 69 | 64 20 63 64 5f 73 75 62 |p();.voi|d cd_sub|
|000037c0| 63 68 6e 6c 28 29 3b 0a | 76 6f 69 64 20 63 64 5f |chnl();.|void cd_|
|000037d0| 73 74 61 74 75 73 28 29 | 3b 0a 76 6f 69 64 20 63 |status()|;.void c|
|000037e0| 64 5f 74 6f 63 65 6e 74 | 72 79 28 69 6e 74 20 74 |d_tocent|ry(int t|
|000037f0| 72 61 63 6b 29 3b 0a 0a | 25 7d 0a 0a 25 75 6e 69 |rack);..|%}..%uni|
|00003800| 6f 6e 20 7b 0a 20 20 20 | 20 63 68 61 72 20 20 20 |on {. | char |
|00003810| 20 2a 73 74 72 69 6e 67 | 3b 20 20 20 20 20 2f 2a | *string|; /*|
|00003820| 20 73 74 72 69 6e 67 20 | 62 75 66 66 65 72 20 2a | string |buffer *|
|00003830| 2f 0a 20 20 20 20 69 6e | 74 20 20 20 20 63 6d 64 |/. in|t cmd|
|00003840| 3b 20 20 20 20 20 20 20 | 20 20 20 2f 2a 20 63 6f |; | /* co|
|00003850| 6d 6d 61 6e 64 20 76 61 | 6c 75 65 20 2a 2f 0a 20 |mmand va|lue */. |
|00003860| 20 20 20 69 6e 74 20 20 | 20 20 6e 75 6d 3b 09 09 | int | num;..|
|00003870| 20 2f 2a 20 6e 75 6d 62 | 65 72 20 76 61 6c 75 65 | /* numb|er value|
|00003880| 20 2a 2f 0a 7d 0a 0a 25 | 74 6f 6b 65 6e 20 3c 73 | */.}..%|token <s|
|00003890| 74 72 69 6e 67 3e 20 44 | 45 56 53 54 52 49 4e 47 |tring> D|EVSTRING|
|000038a0| 20 0a 25 74 6f 6b 65 6e | 20 3c 63 6d 64 3e 20 43 | .%token| <cmd> C|
|000038b0| 4d 44 5f 50 4c 41 59 20 | 43 4d 44 5f 53 54 4f 50 |MD_PLAY |CMD_STOP|
|000038c0| 20 43 4d 44 5f 49 4e 46 | 4f 20 43 4d 44 5f 50 41 | CMD_INF|O CMD_PA|
|000038d0| 55 53 45 20 43 4d 44 5f | 52 45 53 55 4d 45 20 43 |USE CMD_|RESUME C|
|000038e0| 4d 44 5f 53 54 41 54 55 | 53 0a 25 74 6f 6b 65 6e |MD_STATU|S.%token|
|000038f0| 20 3c 63 6d 64 3e 20 43 | 4d 44 5f 45 4a 45 43 54 | <cmd> C|MD_EJECT|
|00003900| 20 43 4d 44 5f 56 4f 4c | 55 4d 45 20 43 4d 44 5f | CMD_VOL|UME CMD_|
|00003910| 53 4b 49 50 20 43 4d 44 | 5f 44 45 56 49 43 45 20 |SKIP CMD|_DEVICE |
|00003920| 43 4d 44 5f 55 53 41 47 | 45 20 43 4d 44 5f 54 4b |CMD_USAG|E CMD_TK|
|00003930| 43 44 0a 25 74 6f 6b 65 | 6e 20 3c 6e 75 6d 3e 20 |CD.%toke|n <num> |
|00003940| 4e 55 4d 42 45 52 0a 0a | 25 74 79 70 65 20 3c 63 |NUMBER..|%type <c|
|00003950| 6d 64 3e 20 63 6f 6d 6d | 61 6e 64 20 63 6f 6d 6d |md> comm|and comm|
|00003960| 61 6e 64 73 0a 25 74 79 | 70 65 20 3c 73 74 72 69 |ands.%ty|pe <stri|
|00003970| 6e 67 3e 20 64 65 76 73 | 74 72 69 6e 67 0a 25 74 |ng> devs|tring.%t|
|00003980| 79 70 65 20 3c 6e 75 6d | 3e 20 6e 75 6d 62 65 72 |ype <num|> number|
|00003990| 0a 0a 25 73 74 61 72 74 | 20 63 6f 6d 6d 61 6e 64 |..%start| command|
|000039a0| 73 0a 25 25 0a 0a 63 6f | 6d 6d 61 6e 64 73 3a 20 |s.%%..co|mmands: |
|000039b0| 20 63 6f 6d 6d 61 6e 64 | 0a 20 20 20 20 7c 20 63 | command|. | c|
|000039c0| 6f 6d 6d 61 6e 64 73 20 | 63 6f 6d 6d 61 6e 64 0a |ommands |command.|
|000039d0| 20 20 20 20 3b 0a 09 20 | 20 20 20 20 20 20 0a 63 | ;.. | .c|
|000039e0| 6f 6d 6d 61 6e 64 3a 20 | 43 4d 44 5f 50 4c 41 59 |ommand: |CMD_PLAY|
|000039f0| 0a 20 20 20 20 20 20 20 | 20 20 7b 0a 09 20 20 20 |. | {.. |
|00003a00| 20 20 20 20 2f 2a 20 0a | 09 09 2a 20 43 68 65 63 | /* .|..* Chec|
|00003a10| 6b 20 69 66 20 77 65 20 | 68 61 76 65 20 61 20 72 |k if we |have a r|
|00003a20| 65 71 75 65 73 74 65 64 | 20 74 72 61 63 6b 20 74 |equested| track t|
|00003a30| 6f 20 70 6c 61 79 2c 20 | 61 6e 64 20 70 6c 61 79 |o play, |and play|
|00003a40| 20 69 74 2c 0a 20 20 20 | 20 20 20 20 20 20 20 20 | it,. | |
|00003a50| 20 20 20 20 20 2a 20 6f | 74 68 65 72 77 69 73 65 | * o|therwise|
|00003a60| 2c 20 70 6c 61 79 20 73 | 74 61 72 74 69 6e 67 20 |, play s|tarting |
|00003a70| 61 74 20 74 72 61 63 6b | 20 31 0a 20 20 20 20 20 |at track| 1. |
|00003a80| 20 20 20 20 20 20 20 20 | 20 20 20 2a 2f 0a 20 20 | | */. |
|00003a90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 69 6e 69 | | ini|
|00003aa0| 74 63 64 72 6f 6d 28 29 | 3b 0a 09 20 20 20 20 20 |tcdrom()|;.. |
|00003ab0| 20 20 74 69 2e 63 64 74 | 69 5f 74 72 6b 30 3d 74 | ti.cdt|i_trk0=t|
|00003ac0| 6f 63 68 64 72 2e 63 64 | 74 68 5f 74 72 6b 30 3b |ochdr.cd|th_trk0;|
|00003ad0| 0a 09 20 20 20 20 20 20 | 20 63 64 5f 70 6c 61 79 |.. | cd_play|
|00003ae0| 28 43 4d 44 5f 50 4c 41 | 59 29 3b 0a 20 20 20 20 |(CMD_PLA|Y);. |
|00003af0| 20 20 20 20 20 7d 0a 20 | 20 20 20 20 7c 20 43 4d | }. | | CM|
|00003b00| 44 5f 50 4c 41 59 20 6e | 75 6d 62 65 72 0a 09 7b |D_PLAY n|umber..{|
|00003b10| 0a 09 20 20 20 20 20 20 | 20 69 6e 69 74 63 64 72 |.. | initcdr|
|00003b20| 6f 6d 28 29 3b 0a 09 20 | 20 20 20 20 20 20 69 66 |om();.. | if|
|00003b30| 20 28 28 24 32 3c 74 6f | 63 68 64 72 2e 63 64 74 | (($2<to|chdr.cdt|
|00003b40| 68 5f 74 72 6b 30 29 20 | 7c 7c 20 28 24 32 3e 74 |h_trk0) ||| ($2>t|
|00003b50| 6f 63 68 64 72 2e 63 64 | 74 68 5f 74 72 6b 31 29 |ochdr.cd|th_trk1)|
|00003b60| 29 20 7b 0a 09 20 20 20 | 20 20 20 20 20 20 20 20 |) {.. | |
|00003b70| 69 66 20 28 21 74 6b 63 | 64 29 20 70 72 69 6e 74 |if (!tkc|d) print|
|00003b80| 66 28 22 54 72 61 63 6b | 20 25 64 20 69 73 20 69 |f("Track| %d is i|
|00003b90| 6e 76 61 6c 69 64 2e 20 | 50 6c 61 79 69 6e 67 20 |nvalid. |Playing |
|00003ba0| 66 72 6f 6d 20 74 72 61 | 63 6b 20 31 2e 5c 6e 22 |from tra|ck 1.\n"|
|00003bb0| 2c 24 32 29 3b 0a 09 20 | 20 20 20 20 20 20 20 20 |,$2);.. | |
|00003bc0| 20 20 74 69 2e 63 64 74 | 69 5f 74 72 6b 30 3d 74 | ti.cdt|i_trk0=t|
|00003bd0| 6f 63 68 64 72 2e 63 64 | 74 68 5f 74 72 6b 30 3b |ochdr.cd|th_trk0;|
|00003be0| 0a 09 09 20 20 7d 20 65 | 6c 73 65 20 7b 0a 09 20 |... } e|lse {.. |
|00003bf0| 20 20 20 20 20 20 20 20 | 20 20 74 69 2e 63 64 74 | | ti.cdt|
|00003c00| 69 5f 74 72 6b 30 3d 24 | 32 3b 0a 09 20 20 20 20 |i_trk0=$|2;.. |
|00003c10| 20 20 20 7d 0a 09 20 20 | 20 20 20 20 20 63 64 5f | }.. | cd_|
|00003c20| 70 6c 61 79 28 43 4d 44 | 5f 50 4c 41 59 29 3b 0a |play(CMD|_PLAY);.|
|00003c30| 09 7d 0a 20 20 20 20 7c | 20 43 4d 44 5f 53 54 4f |.}. || CMD_STO|
|00003c40| 50 0a 09 7b 0a 20 20 20 | 20 20 20 20 20 20 20 20 |P..{. | |
|00003c50| 20 20 20 20 2f 2a 20 0a | 20 20 20 20 20 20 20 20 | /* .| |
|00003c60| 20 20 20 20 20 20 20 20 | 2a 20 53 74 6f 70 20 74 | |* Stop t|
|00003c70| 68 65 20 43 44 20 66 72 | 6f 6d 20 70 6c 61 79 69 |he CD fr|om playi|
|00003c80| 6e 67 21 20 57 65 20 6d | 75 73 74 20 70 61 75 73 |ng! We m|ust paus|
|00003c90| 65 20 74 68 65 20 43 44 | 52 4f 4d 20 64 72 69 76 |e the CD|ROM driv|
|00003ca0| 65 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |e. | |
|00003cb0| 20 20 2a 20 61 6e 64 20 | 74 68 65 6e 20 73 74 6f | * and |then sto|
|00003cc0| 70 20 69 74 20 6f 74 68 | 65 72 77 69 73 65 20 73 |p it oth|erwise s|
|00003cd0| 6f 6d 65 20 64 72 69 76 | 65 73 20 63 6f 6d 70 6c |ome driv|es compl|
|00003ce0| 61 69 6e 2e 0a 20 20 20 | 20 20 20 20 20 20 20 20 |ain.. | |
|00003cf0| 20 20 20 20 20 2a 2f 0a | 09 20 20 20 20 20 20 20 | */.|. |
|00003d00| 69 6e 69 74 63 64 72 6f | 6d 28 29 3b 0a 09 20 20 |initcdro|m();.. |
|00003d10| 20 20 20 20 20 69 66 20 | 28 28 73 75 62 63 68 6e | if |((subchn|
|00003d20| 6c 2e 63 64 73 63 5f 61 | 75 64 69 6f 73 74 61 74 |l.cdsc_a|udiostat|
|00003d30| 75 73 3d 3d 43 44 52 4f | 4d 5f 41 55 44 49 4f 5f |us==CDRO|M_AUDIO_|
|00003d40| 50 41 55 53 45 44 29 20 | 7c 7c 0a 09 09 20 20 20 |PAUSED) |||... |
|00003d50| 28 73 75 62 63 68 6e 6c | 2e 63 64 73 63 5f 61 75 |(subchnl|.cdsc_au|
|00003d60| 64 69 6f 73 74 61 74 75 | 73 3d 3d 43 44 52 4f 4d |diostatu|s==CDROM|
|00003d70| 5f 41 55 44 49 4f 5f 50 | 4c 41 59 29 29 20 7b 0a |_AUDIO_P|LAY)) {.|
|00003d80| 09 20 20 20 20 20 20 20 | 20 20 20 63 64 5f 73 74 |. | cd_st|
|00003d90| 6f 70 28 29 3b 0a 09 20 | 20 20 20 20 20 20 20 20 |op();.. | |
|00003da0| 20 69 66 20 28 74 6b 63 | 64 29 20 7b 0a 09 20 20 | if (tkc|d) {.. |
|00003db0| 20 20 20 20 20 20 20 20 | 20 20 20 70 75 74 73 28 | | puts(|
|00003dc0| 22 53 54 4f 50 3b 4f 4b | 22 29 3b 0a 09 09 20 20 |"STOP;OK|");... |
|00003dd0| 7d 20 65 6c 73 65 20 7b | 0a 09 20 20 20 20 20 20 |} else {|.. |
|00003de0| 20 20 20 20 20 20 20 70 | 75 74 73 28 22 41 75 64 | p|uts("Aud|
|00003df0| 69 6f 20 43 44 20 73 74 | 6f 70 70 65 64 2e 22 29 |io CD st|opped.")|
|00003e00| 3b 0a 09 20 20 20 20 20 | 20 20 20 20 20 7d 0a 09 |;.. | }..|
|00003e10| 20 20 20 20 20 20 20 20 | 7d 20 65 6c 73 65 20 7b | |} else {|
|00003e20| 0a 09 20 20 20 20 20 20 | 20 20 20 20 69 66 20 28 |.. | if (|
|00003e30| 74 6b 63 64 29 20 7b 0a | 09 20 20 20 20 20 20 20 |tkcd) {.|. |
|00003e40| 20 20 20 20 20 20 70 75 | 74 73 28 22 53 54 4f 50 | pu|ts("STOP|
|00003e50| 3b 4e 4f 50 4c 41 59 22 | 29 3b 0a 09 09 20 20 7d |;NOPLAY"|);... }|
|00003e60| 20 65 6c 73 65 20 7b 0a | 09 20 20 20 20 20 20 20 | else {.|. |
|00003e70| 20 20 20 20 20 20 70 75 | 74 73 28 22 43 44 20 69 | pu|ts("CD i|
|00003e80| 73 20 6e 6f 74 20 63 75 | 72 72 65 6e 74 6c 79 20 |s not cu|rrently |
|00003e90| 70 61 75 73 65 64 20 6f | 72 20 70 6c 61 79 69 6e |paused o|r playin|
|00003ea0| 67 2e 20 43 6f 6d 6d 61 | 6e 64 20 69 67 6e 6f 72 |g. Comma|nd ignor|
|00003eb0| 65 64 2e 22 29 3b 0a 09 | 20 20 20 20 20 20 20 20 |ed.");..| |
|00003ec0| 20 20 7d 0a 09 20 20 20 | 20 20 20 7d 09 09 20 20 | }.. | }.. |
|00003ed0| 0a 09 7d 0a 20 20 20 20 | 20 7c 20 43 4d 44 5f 45 |..}. | | CMD_E|
|00003ee0| 4a 45 43 54 0a 09 7b 0a | 09 20 20 20 20 20 20 20 |JECT..{.|. |
|00003ef0| 69 6e 69 74 63 64 72 6f | 6d 28 29 3b 0a 09 20 20 |initcdro|m();.. |
|00003f00| 20 20 20 20 20 63 64 5f | 73 74 6f 70 28 29 3b 0a | cd_|stop();.|
|00003f10| 09 20 20 20 20 20 20 20 | 69 66 20 28 28 69 6f 63 |. |if ((ioc|
|00003f20| 74 6c 28 66 2c 43 44 52 | 4f 4d 45 4a 45 43 54 29 |tl(f,CDR|OMEJECT)|
|00003f30| 29 3d 3d 2d 31 29 20 7b | 0a 09 20 20 20 20 20 20 |)==-1) {|.. |
|00003f40| 20 20 20 20 20 69 66 20 | 28 74 6b 63 64 29 20 7b | if |(tkcd) {|
|00003f50| 0a 09 20 20 20 20 09 20 | 20 20 20 20 20 20 70 75 |.. . | pu|
|00003f60| 74 73 28 22 45 4a 45 43 | 54 3b 45 52 52 4f 52 22 |ts("EJEC|T;ERROR"|
|00003f70| 29 3b 0a 09 09 20 20 20 | 20 20 20 7d 20 65 6c 73 |);... | } els|
|00003f80| 65 20 7b 0a 20 20 20 20 | 20 20 20 20 20 20 20 09 |e {. | .|
|00003f90| 20 20 20 20 20 20 20 70 | 65 72 72 6f 72 28 22 69 | p|error("i|
|00003fa0| 6f 63 74 6c 28 43 44 52 | 4f 4d 45 4a 45 43 54 29 |octl(CDR|OMEJECT)|
|00003fb0| 22 29 3b 0a 09 20 20 20 | 20 20 20 20 20 20 20 20 |");.. | |
|00003fc0| 7d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |}. | |
|00003fd0| 20 20 20 20 20 65 78 69 | 74 28 31 29 3b 0a 09 20 | exi|t(1);.. |
|00003fe0| 20 20 20 20 20 20 7d 0a | 09 20 20 20 20 20 20 20 | }.|. |
|00003ff0| 69 66 20 28 74 6b 63 64 | 29 20 7b 0a 09 09 20 20 |if (tkcd|) {... |
|00004000| 70 75 74 73 28 22 45 4a | 45 43 54 3b 4f 4b 22 29 |puts("EJ|ECT;OK")|
|00004010| 3b 0a 09 09 20 7d 20 65 | 6c 73 65 20 7b 0a 09 20 |;... } e|lse {.. |
|00004020| 20 20 20 20 20 20 20 20 | 20 70 75 74 73 28 22 41 | | puts("A|
|00004030| 75 64 69 6f 20 43 44 20 | 65 6a 65 63 74 65 64 2e |udio CD |ejected.|
|00004040| 22 29 3b 0a 09 20 20 20 | 20 20 20 20 7d 0a 09 7d |");.. | }..}|
|00004050| 0a 20 20 20 20 20 7c 20 | 43 4d 44 5f 54 4b 43 44 |. | |CMD_TKCD|
|00004060| 0a 20 20 20 20 20 20 20 | 20 7b 0a 20 20 20 20 20 |. | {. |
|00004070| 20 20 20 20 20 20 20 20 | 20 20 20 74 6b 63 64 3d | | tkcd=|
|00004080| 54 52 55 45 3b 0a 20 20 | 20 20 20 20 20 20 7d 0a |TRUE;. | }.|
|00004090| 20 20 20 20 20 7c 20 43 | 4d 44 5f 49 4e 46 4f 0a | | C|MD_INFO.|
|000040a0| 09 7b 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.{. | |
|000040b0| 20 20 2f 2a 0a 09 09 2a | 20 41 6c 6c 20 74 68 69 | /*...*| All thi|
|000040c0| 73 20 64 6f 65 73 20 69 | 73 20 67 72 61 62 20 74 |s does i|s grab t|
|000040d0| 68 65 20 74 6f 74 61 6c | 20 74 69 6d 65 20 66 6f |he total| time fo|
|000040e0| 72 20 74 68 65 20 43 44 | 20 61 6e 64 20 0a 20 20 |r the CD| and . |
|000040f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 2a 20 | | * |
|00004100| 66 69 67 75 72 65 73 20 | 6f 75 74 20 74 68 65 20 |figures |out the |
|00004110| 74 69 6d 65 20 70 65 72 | 20 74 72 61 63 6b 20 61 |time per| track a|
|00004120| 73 20 77 65 6c 6c 2e 20 | 49 74 20 61 6c 73 6f 20 |s well. |It also |
|00004130| 73 68 6f 77 73 0a 09 09 | 2a 20 74 68 65 20 43 44 |shows...|* the CD|
|00004140| 52 4f 4d 20 73 74 61 74 | 75 73 20 61 6e 64 20 74 |ROM stat|us and t|
|00004150| 72 61 63 6b 20 69 6e 20 | 70 6c 61 79 20 28 69 66 |rack in |play (if|
|00004160| 20 70 6c 61 79 69 6e 67 | 29 2e 0a 09 09 2a 20 41 | playing|)....* A|
|00004170| 6c 6c 20 66 69 67 75 72 | 65 73 20 61 72 65 20 63 |ll figur|es are c|
|00004180| 61 6c 75 61 74 65 64 20 | 69 6e 20 66 72 61 6d 65 |aluated |in frame|
|00004190| 73 20 77 68 65 72 65 20 | 6f 6e 65 20 66 72 61 6d |s where |one fram|
|000041a0| 65 20 65 71 75 61 6c 73 | 0a 09 09 2a 20 61 62 6f |e equals|...* abo|
|000041b0| 75 74 20 31 2f 37 35 20 | 73 65 63 6f 6e 64 73 2e |ut 1/75 |seconds.|
|000041c0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|000041d0| 20 2a 2f 0a 09 20 20 20 | 20 20 20 20 69 6e 69 74 | */.. | init|
|000041e0| 63 64 72 6f 6d 28 29 3b | 0a 09 20 20 20 20 20 20 |cdrom();|.. |
|000041f0| 20 69 66 20 28 21 74 6b | 63 64 29 20 7b 0a 20 20 | if (!tk|cd) {. |
|00004200| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004210| 70 72 69 6e 74 66 28 22 | 41 75 64 69 6f 20 43 44 |printf("|Audio CD|
|00004220| 20 49 6e 66 6f 72 6d 61 | 74 69 6f 6e 20 6f 6e 20 | Informa|tion on |
|00004230| 25 73 3a 5c 6e 22 2c 63 | 64 5f 64 65 76 29 3b 0a |%s:\n",c|d_dev);.|
|00004240| 09 20 20 20 20 20 20 20 | 20 20 20 70 72 69 6e 74 |. | print|
|00004250| 66 28 22 54 6f 74 61 6c | 20 54 72 61 63 6b 73 3a |f("Total| Tracks:|
|00004260| 20 25 75 5c 6e 22 2c 74 | 6f 63 68 64 72 2e 63 64 | %u\n",t|ochdr.cd|
|00004270| 74 68 5f 74 72 6b 31 29 | 3b 0a 20 20 20 20 20 20 |th_trk1)|;. |
|00004280| 20 20 20 20 20 20 20 20 | 20 20 20 7d 20 65 6c 73 | | } els|
|00004290| 65 20 7b 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |e {. | |
|000042a0| 20 20 20 20 20 20 70 72 | 69 6e 74 66 28 22 49 4e | pr|intf("IN|
|000042b0| 46 4f 3b 4f 4b 3b 25 64 | 2c 22 2c 74 6f 63 68 64 |FO;OK;%d|,",tochd|
|000042c0| 72 2e 63 64 74 68 5f 74 | 72 6b 31 29 3b 0a 09 20 |r.cdth_t|rk1);.. |
|000042d0| 20 20 20 20 20 20 7d 0a | 09 20 20 20 20 20 20 20 | }.|. |
|000042e0| 63 64 5f 74 6f 63 65 6e | 74 72 79 28 43 44 52 4f |cd_tocen|try(CDRO|
|000042f0| 4d 5f 4c 45 41 44 4f 55 | 54 29 3b 0a 09 20 20 20 |M_LEADOU|T);.. |
|00004300| 20 20 20 20 69 66 20 28 | 21 74 6b 63 64 29 20 7b | if (|!tkcd) {|
|00004310| 0a 09 20 20 20 20 20 20 | 20 20 20 20 70 72 69 6e |.. | prin|
|00004320| 74 66 28 22 54 6f 74 61 | 6c 20 50 6c 61 79 69 6e |tf("Tota|l Playin|
|00004330| 67 20 54 69 6d 65 3a 20 | 25 75 20 6d 69 6e 20 25 |g Time: |%u min %|
|00004340| 75 20 73 65 63 5c 6e 22 | 2c 0a 20 20 20 20 20 20 |u sec\n"|,. |
|00004350| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004360| 20 20 20 74 6f 63 65 6e | 74 72 79 2e 63 64 74 65 | tocen|try.cdte|
|00004370| 5f 61 64 64 72 2e 6d 73 | 66 2e 6d 69 6e 75 74 65 |_addr.ms|f.minute|
|00004380| 2c 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |,. | |
|00004390| 20 20 20 20 20 20 20 20 | 20 20 20 74 6f 63 65 6e | | tocen|
|000043a0| 74 72 79 2e 63 64 74 65 | 5f 61 64 64 72 2e 6d 73 |try.cdte|_addr.ms|
|000043b0| 66 2e 73 65 63 6f 6e 64 | 29 3b 0a 20 20 20 20 20 |f.second|);. |
|000043c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 70 72 69 | | pri|
|000043d0| 6e 74 66 28 22 54 72 61 | 63 6b 20 20 54 69 6d 65 |ntf("Tra|ck Time|
|000043e0| 5c 6e 22 29 3b 0a 20 20 | 20 20 20 20 20 20 20 20 |\n");. | |
|000043f0| 20 20 20 20 20 20 20 7d | 20 65 6c 73 65 20 7b 0a | }| else {.|
|00004400| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004410| 20 20 70 72 69 6e 74 66 | 28 22 25 6c 75 3b 22 2c | printf|("%lu;",|
|00004420| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00004430| 20 20 20 20 20 20 20 20 | 20 20 28 74 6f 63 65 6e | | (tocen|
|00004440| 74 72 79 2e 63 64 74 65 | 5f 61 64 64 72 2e 6d 73 |try.cdte|_addr.ms|
|00004450| 66 2e 6d 69 6e 75 74 65 | 2a 43 5f 54 49 4d 45 29 |f.minute|*C_TIME)|
|00004460| 2b 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |+. | |
|00004470| 20 20 20 20 20 20 20 20 | 20 20 20 28 74 6f 63 65 | | (toce|
|00004480| 6e 74 72 79 2e 63 64 74 | 65 5f 61 64 64 72 2e 6d |ntry.cdt|e_addr.m|
|00004490| 73 66 2e 73 65 63 6f 6e | 64 2a 37 35 29 20 2b 0a |sf.secon|d*75) +.|
|000044a0| 09 09 09 20 74 6f 63 65 | 6e 74 72 79 2e 63 64 74 |... toce|ntry.cdt|
|000044b0| 65 5f 61 64 64 72 2e 6d | 73 66 2e 66 72 61 6d 65 |e_addr.m|sf.frame|
|000044c0| 29 3b 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |);. | |
|000044d0| 20 20 7d 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 | }. | |
|000044e0| 20 20 20 2f 2a 0a 20 20 | 20 20 20 20 20 20 20 20 | /*. | |
|000044f0| 20 20 20 20 20 20 2a 20 | 4c 6f 6f 70 20 74 68 72 | * |Loop thr|
|00004500| 6f 75 67 68 20 65 61 63 | 68 20 6f 66 20 74 68 65 |ough eac|h of the|
|00004510| 20 74 61 62 6c 65 20 6f | 66 20 63 6f 6e 74 65 6e | table o|f conten|
|00004520| 74 73 20 65 6e 74 72 69 | 65 73 20 61 6e 64 20 70 |ts entri|es and p|
|00004530| 75 6c 6c 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |ull. | |
|00004540| 20 20 20 20 2a 20 70 75 | 6c 6c 20 73 6f 6d 65 20 | * pu|ll some |
|00004550| 69 6e 66 6f 20 61 62 6f | 75 74 20 65 61 63 68 20 |info abo|ut each |
|00004560| 74 72 61 63 6b 2e 0a 20 | 20 20 20 20 20 20 20 20 |track.. | |
|00004570| 20 20 20 20 20 20 20 2a | 2f 0a 09 20 20 20 20 20 | *|/.. |
|00004580| 20 20 66 6f 72 20 28 69 | 3d 74 6f 63 68 64 72 2e | for (i|=tochdr.|
|00004590| 63 64 74 68 5f 74 72 6b | 30 3b 69 3c 3d 74 6f 63 |cdth_trk|0;i<=toc|
|000045a0| 68 64 72 2e 63 64 74 68 | 5f 74 72 6b 31 3b 69 2b |hdr.cdth|_trk1;i+|
|000045b0| 2b 29 20 7b 0a 09 09 20 | 20 20 20 63 64 5f 74 6f |+) {... | cd_to|
|000045c0| 63 65 6e 74 72 79 28 69 | 29 3b 0a 09 09 20 20 20 |centry(i|);... |
|000045d0| 20 69 66 20 28 69 3d 3d | 74 6f 63 68 64 72 2e 63 | if (i==|tochdr.c|
|000045e0| 64 74 68 5f 74 72 6b 30 | 29 20 7b 0a 20 20 20 20 |dth_trk0|) {. |
|000045f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004600| 20 20 20 74 5f 6c 61 73 | 74 74 72 6b 3d 74 6f 63 | t_las|ttrk=toc|
|00004610| 65 6e 74 72 79 2e 63 64 | 74 65 5f 61 64 64 72 2e |entry.cd|te_addr.|
|00004620| 6d 73 66 2e 6d 69 6e 75 | 74 65 20 2a 20 43 5f 54 |msf.minu|te * C_T|
|00004630| 49 4d 45 20 2b 0a 20 20 | 20 20 20 20 20 20 20 20 |IME +. | |
|00004640| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004650| 20 20 20 20 20 20 20 20 | 20 20 20 74 6f 63 65 6e | | tocen|
|00004660| 74 72 79 2e 63 64 74 65 | 5f 61 64 64 72 2e 6d 73 |try.cdte|_addr.ms|
|00004670| 66 2e 73 65 63 6f 6e 64 | 20 2a 20 37 35 20 2b 0a |f.second| * 75 +.|
|00004680| 09 09 09 09 20 20 20 20 | 20 74 6f 63 65 6e 74 72 |.... | tocentr|
|00004690| 79 2e 63 64 74 65 5f 61 | 64 64 72 2e 6d 73 66 2e |y.cdte_a|ddr.msf.|
|000046a0| 66 72 61 6d 65 3b 0a 20 | 20 20 20 20 20 20 20 20 |frame;. | |
|000046b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 63 6f | | co|
|000046c0| 6e 74 69 6e 75 65 3b 0a | 20 20 20 20 20 20 20 20 |ntinue;.| |
|000046d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 7d 0a 20 20 | | }. |
|000046e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000046f0| 20 20 74 5f 74 68 69 73 | 74 72 6b 3d 74 6f 63 65 | t_this|trk=toce|
|00004700| 6e 74 72 79 2e 63 64 74 | 65 5f 61 64 64 72 2e 6d |ntry.cdt|e_addr.m|
|00004710| 73 66 2e 6d 69 6e 75 74 | 65 20 2a 20 43 5f 54 49 |sf.minut|e * C_TI|
|00004720| 4d 45 20 2b 0a 20 20 20 | 20 20 20 20 20 20 20 20 |ME +. | |
|00004730| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004740| 20 20 20 20 20 20 20 20 | 20 20 74 6f 63 65 6e 74 | | tocent|
|00004750| 72 79 2e 63 64 74 65 5f | 61 64 64 72 2e 6d 73 66 |ry.cdte_|addr.msf|
|00004760| 2e 73 65 63 6f 6e 64 20 | 2a 20 37 35 20 2b 0a 09 |.second |* 75 +..|
|00004770| 09 09 09 20 20 20 20 20 | 74 6f 63 65 6e 74 72 79 |... |tocentry|
|00004780| 2e 63 64 74 65 5f 61 64 | 64 72 2e 6d 73 66 2e 66 |.cdte_ad|dr.msf.f|
|00004790| 72 61 6d 65 3b 0a 20 20 | 20 20 20 20 20 20 20 20 |rame;. | |
|000047a0| 20 20 20 20 20 20 20 20 | 20 20 74 5f 74 72 61 63 | | t_trac|
|000047b0| 6b 20 3d 20 74 5f 74 68 | 69 73 74 72 6b 20 2d 20 |k = t_th|istrk - |
|000047c0| 74 5f 6c 61 73 74 74 72 | 6b 20 3b 0a 09 09 20 20 |t_lasttr|k ;... |
|000047d0| 20 20 74 5f 6c 61 73 74 | 74 72 6b 3d 74 5f 74 68 | t_last|trk=t_th|
|000047e0| 69 73 74 72 6b 3b 0a 20 | 20 20 20 20 20 20 20 20 |istrk;. | |
|000047f0| 20 20 20 20 20 20 20 20 | 20 20 20 69 66 20 28 74 | | if (t|
|00004800| 6b 63 64 29 20 7b 0a 09 | 09 20 20 20 20 20 20 20 |kcd) {..|. |
|00004810| 70 72 69 6e 74 66 28 22 | 25 64 2c 25 6c 75 3b 22 |printf("|%d,%lu;"|
|00004820| 2c 69 2d 31 2c 20 74 5f | 74 72 61 63 6b 29 3b 0a |,i-1, t_|track);.|
|00004830| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004840| 20 20 20 20 20 20 7d 20 | 65 6c 73 65 20 7b 0a 09 | } |else {..|
|00004850| 09 20 20 20 20 20 20 20 | 70 72 69 6e 74 66 28 22 |. |printf("|
|00004860| 25 32 64 20 20 20 20 25 | 32 75 3a 25 30 32 75 5c |%2d %|2u:%02u\|
|00004870| 6e 22 2c 69 2d 31 2c 20 | 74 5f 74 72 61 63 6b 2f |n",i-1, |t_track/|
|00004880| 43 5f 54 49 4d 45 2c 28 | 74 5f 74 72 61 63 6b 25 |C_TIME,(|t_track%|
|00004890| 43 5f 54 49 4d 45 29 2f | 37 35 29 3b 0a 09 09 20 |C_TIME)/|75);... |
|000048a0| 20 20 20 7d 0a 09 20 20 | 20 20 20 20 20 7d 0a 09 | }.. | }..|
|000048b0| 20 20 20 20 20 20 20 63 | 64 5f 74 6f 63 65 6e 74 | c|d_tocent|
|000048c0| 72 79 28 43 44 52 4f 4d | 5f 4c 45 41 44 4f 55 54 |ry(CDROM|_LEADOUT|
|000048d0| 29 3b 0a 09 20 20 20 20 | 20 20 20 74 5f 74 72 61 |);.. | t_tra|
|000048e0| 63 6b 3d 28 74 6f 63 65 | 6e 74 72 79 2e 63 64 74 |ck=(toce|ntry.cdt|
|000048f0| 65 5f 61 64 64 72 2e 6d | 73 66 2e 6d 69 6e 75 74 |e_addr.m|sf.minut|
|00004900| 65 2a 43 5f 54 49 4d 45 | 2b 0a 09 09 20 20 20 20 |e*C_TIME|+... |
|00004910| 20 20 20 74 6f 63 65 6e | 74 72 79 2e 63 64 74 65 | tocen|try.cdte|
|00004920| 5f 61 64 64 72 2e 6d 73 | 66 2e 73 65 63 6f 6e 64 |_addr.ms|f.second|
|00004930| 2a 28 43 5f 54 49 4d 45 | 29 2f 37 35 2b 0a 09 09 |*(C_TIME|)/75+...|
|00004940| 20 20 20 20 20 20 20 74 | 6f 63 65 6e 74 72 79 2e | t|ocentry.|
|00004950| 63 64 74 65 5f 61 64 64 | 72 2e 6d 73 66 2e 66 72 |cdte_add|r.msf.fr|
|00004960| 61 6d 65 29 2d 74 5f 74 | 68 69 73 74 72 6b 3b 0a |ame)-t_t|histrk;.|
|00004970| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 69 | | i|
|00004980| 66 20 28 74 6b 63 64 29 | 20 7b 0a 09 09 20 20 20 |f (tkcd)| {... |
|00004990| 70 72 69 6e 74 66 28 22 | 25 64 2c 25 6c 75 5c 6e |printf("|%d,%lu\n|
|000049a0| 22 2c 69 2d 31 2c 20 74 | 5f 74 72 61 63 6b 29 3b |",i-1, t|_track);|
|000049b0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|000049c0| 20 20 20 7d 20 65 6c 73 | 65 20 7b 0a 09 09 20 20 | } els|e {... |
|000049d0| 20 70 72 69 6e 74 66 28 | 22 25 32 64 20 20 20 20 | printf(|"%2d |
|000049e0| 25 32 75 3a 25 30 32 75 | 5c 6e 22 2c 69 2d 31 2c |%2u:%02u|\n",i-1,|
|000049f0| 20 74 5f 74 72 61 63 6b | 2f 43 5f 54 49 4d 45 2c | t_track|/C_TIME,|
|00004a00| 28 74 5f 74 72 61 63 6b | 25 43 5f 54 49 4d 45 29 |(t_track|%C_TIME)|
|00004a10| 2f 37 35 29 3b 0a 09 20 | 20 20 20 20 20 20 7d 0a |/75);.. | }.|
|00004a20| 09 20 20 20 20 20 20 20 | 69 66 20 28 21 74 6b 63 |. |if (!tkc|
|00004a30| 64 29 20 63 64 5f 73 74 | 61 74 75 73 28 29 3b 0a |d) cd_st|atus();.|
|00004a40| 0a 09 7d 0a 20 20 20 20 | 20 7c 20 43 4d 44 5f 50 |..}. | | CMD_P|
|00004a50| 41 55 53 45 0a 09 7b 0a | 20 20 20 20 20 20 20 20 |AUSE..{.| |
|00004a60| 20 20 20 20 20 20 20 2f | 2a 0a 20 20 20 20 20 20 | /|*. |
|00004a70| 20 20 20 20 20 20 20 20 | 20 20 2a 20 50 61 75 73 | | * Paus|
|00004a80| 65 20 61 20 70 6c 61 79 | 69 6e 67 20 41 75 64 69 |e a play|ing Audi|
|00004a90| 6f 20 43 44 0a 20 20 20 | 20 20 20 20 20 20 20 20 |o CD. | |
|00004aa0| 20 20 20 20 20 2a 2f 0a | 09 20 20 20 20 20 20 20 | */.|. |
|00004ab0| 69 6e 69 74 63 64 72 6f | 6d 28 29 3b 0a 20 20 20 |initcdro|m();. |
|00004ac0| 20 20 20 20 20 20 20 20 | 20 20 20 20 69 66 20 28 | | if (|
|00004ad0| 73 75 62 63 68 6e 6c 2e | 63 64 73 63 5f 61 75 64 |subchnl.|cdsc_aud|
|00004ae0| 69 6f 73 74 61 74 75 73 | 21 3d 43 44 52 4f 4d 5f |iostatus|!=CDROM_|
|00004af0| 41 55 44 49 4f 5f 50 4c | 41 59 29 20 7b 0a 09 09 |AUDIO_PL|AY) {...|
|00004b00| 20 20 20 20 20 69 66 20 | 28 74 6b 63 64 29 20 7b | if |(tkcd) {|
|00004b10| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00004b20| 20 20 20 20 20 20 20 20 | 20 70 75 74 73 28 22 50 | | puts("P|
|00004b30| 41 55 53 45 3b 4e 4f 50 | 4c 41 59 22 29 3b 0a 20 |AUSE;NOP|LAY");. |
|00004b40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004b50| 20 20 20 20 20 20 7d 20 | 65 6c 73 65 20 7b 20 20 | } |else { |
|00004b60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004b70| 20 20 20 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 | . | |
|00004b80| 20 20 20 20 20 20 20 20 | 20 20 20 20 70 72 69 6e | | prin|
|00004b90| 74 66 28 22 41 75 64 69 | 6f 20 43 44 20 6e 6f 74 |tf("Audi|o CD not|
|00004ba0| 20 63 75 72 72 65 6e 74 | 20 70 6c 61 79 69 6e 67 | current| playing|
|00004bb0| 2e 20 43 6f 6d 6d 61 6e | 64 20 69 67 6e 6f 72 65 |. Comman|d ignore|
|00004bc0| 64 2e 5c 6e 22 29 3b 0a | 20 20 20 20 20 20 20 20 |d.\n");.| |
|00004bd0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 7d 0a 20 | | }. |
|00004be0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004bf0| 20 20 20 20 65 78 69 74 | 28 31 29 3b 0a 20 20 20 | exit|(1);. |
|00004c00| 20 20 20 20 20 20 20 20 | 20 20 20 20 7d 0a 09 20 | | }.. |
|00004c10| 20 20 20 20 20 20 63 64 | 5f 70 61 75 73 65 64 28 | cd|_paused(|
|00004c20| 29 3b 0a 09 20 20 20 20 | 20 20 20 69 66 20 28 74 |);.. | if (t|
|00004c30| 6b 63 64 29 20 7b 0a 09 | 09 20 20 70 72 69 6e 74 |kcd) {..|. print|
|00004c40| 66 28 22 50 41 55 53 45 | 3b 4f 4b 3b 25 64 5c 6e |f("PAUSE|;OK;%d\n|
|00004c50| 22 2c 73 75 62 63 68 6e | 6c 2e 63 64 73 63 5f 74 |",subchn|l.cdsc_t|
|00004c60| 72 6b 29 3b 0a 09 09 7d | 20 65 6c 73 65 20 7b 09 |rk);...}| else {.|
|00004c70| 20 20 20 20 20 20 20 0a | 09 09 20 20 70 72 69 6e | .|.. prin|
|00004c80| 74 66 28 22 41 75 64 69 | 6f 20 43 44 20 70 61 75 |tf("Audi|o CD pau|
|00004c90| 73 65 64 20 61 74 20 25 | 64 2e 20 55 73 65 20 5c |sed at %|d. Use \|
|00004ca0| 22 25 73 20 72 65 73 75 | 6d 65 5c 22 20 74 6f 20 |"%s resu|me\" to |
|00004cb0| 63 6f 6e 74 69 6e 75 65 | 2e 5c 6e 22 2c 73 75 62 |continue|.\n",sub|
|00004cc0| 63 68 6e 6c 2e 63 64 73 | 63 5f 74 72 6b 2c 70 72 |chnl.cds|c_trk,pr|
|00004cd0| 6f 67 6e 61 6d 65 29 3b | 0a 09 20 20 20 20 20 20 |ogname);|.. |
|00004ce0| 20 7d 0a 09 7d 0a 20 20 | 20 20 7c 20 43 4d 44 5f | }..}. | | CMD_|
|00004cf0| 52 45 53 55 4d 45 0a 09 | 7b 0a 20 20 20 20 20 20 |RESUME..|{. |
|00004d00| 20 20 20 20 20 20 2f 2a | 0a 20 20 20 20 20 20 20 | /*|. |
|00004d10| 20 20 20 20 20 20 2a 20 | 43 68 65 63 6b 20 69 66 | * |Check if|
|00004d20| 20 74 68 65 20 41 75 64 | 69 6f 20 43 44 20 69 73 | the Aud|io CD is|
|00004d30| 20 63 75 72 72 65 6e 74 | 6c 79 20 70 61 75 73 65 | current|ly pause|
|00004d40| 64 2c 20 61 6e 64 20 72 | 65 73 75 6d 65 20 70 6c |d, and r|esume pl|
|00004d50| 61 79 2e 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |ay.. | |
|00004d60| 20 2a 2f 0a 09 20 20 20 | 20 20 20 20 69 6e 69 74 | */.. | init|
|00004d70| 63 64 72 6f 6d 28 29 3b | 0a 20 20 20 20 20 20 20 |cdrom();|. |
|00004d80| 20 20 20 20 20 20 20 20 | 69 66 20 28 73 75 62 63 | |if (subc|
|00004d90| 68 6e 6c 2e 63 64 73 63 | 5f 61 75 64 69 6f 73 74 |hnl.cdsc|_audiost|
|00004da0| 61 74 75 73 21 3d 43 44 | 52 4f 4d 5f 41 55 44 49 |atus!=CD|ROM_AUDI|
|00004db0| 4f 5f 50 41 55 53 45 44 | 29 20 7b 0a 09 09 20 20 |O_PAUSED|) {... |
|00004dc0| 20 20 69 66 20 28 74 6b | 63 64 29 20 7b 0a 09 09 | if (tk|cd) {...|
|00004dd0| 09 70 75 74 73 28 22 52 | 45 53 55 4d 45 3b 4e 4f |.puts("R|ESUME;NO|
|00004de0| 50 41 55 53 45 22 29 3b | 0a 09 09 20 20 20 20 20 |PAUSE");|... |
|00004df0| 20 7d 20 65 6c 73 65 20 | 7b 0a 20 20 20 20 20 20 | } else |{. |
|00004e00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004e10| 20 20 70 75 74 73 28 22 | 41 75 64 69 6f 20 43 44 | puts("|Audio CD|
|00004e20| 20 6e 6f 74 20 63 75 72 | 72 65 6e 74 20 70 61 75 | not cur|rent pau|
|00004e30| 73 65 64 2e 20 43 6f 6d | 6d 61 6e 64 20 69 67 6e |sed. Com|mand ign|
|00004e40| 6f 72 65 64 2e 22 29 3b | 0a 09 09 20 20 20 20 7d |ored.");|... }|
|00004e50| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00004e60| 20 20 20 20 20 65 78 69 | 74 28 31 29 3b 0a 20 20 | exi|t(1);. |
|00004e70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 7d 0a 09 | | }..|
|00004e80| 20 20 20 20 20 20 20 69 | 66 20 28 28 69 6f 63 74 | i|f ((ioct|
|00004e90| 6c 28 66 2c 43 44 52 4f | 4d 52 45 53 55 4d 45 29 |l(f,CDRO|MRESUME)|
|00004ea0| 29 3d 3d 2d 31 29 20 7b | 0a 09 09 20 20 20 20 69 |)==-1) {|... i|
|00004eb0| 66 20 28 74 6b 63 64 29 | 20 7b 0a 09 09 09 70 75 |f (tkcd)| {....pu|
|00004ec0| 74 73 28 22 52 45 53 55 | 4d 45 3b 4e 4f 50 41 55 |ts("RESU|ME;NOPAU|
|00004ed0| 53 45 22 29 3b 0a 09 09 | 20 20 20 20 20 20 7d 20 |SE");...| } |
|00004ee0| 65 6c 73 65 20 7b 0a 09 | 09 20 20 20 20 20 20 20 |else {..|. |
|00004ef0| 20 70 65 72 72 6f 72 28 | 22 69 6f 63 74 6c 28 43 | perror(|"ioctl(C|
|00004f00| 44 52 4f 4d 52 45 53 55 | 4d 45 29 22 29 3b 0a 09 |DROMRESU|ME)");..|
|00004f10| 09 20 20 20 20 7d 0a 09 | 09 20 20 20 20 65 78 69 |. }..|. exi|
|00004f20| 74 28 31 29 3b 0a 09 20 | 20 20 20 20 20 20 7d 0a |t(1);.. | }.|
|00004f30| 09 20 20 20 20 20 20 20 | 69 66 20 28 74 6b 63 64 |. |if (tkcd|
|00004f40| 29 20 7b 0a 09 09 20 20 | 70 72 69 6e 74 66 28 22 |) {... |printf("|
|00004f50| 52 45 53 55 4d 45 3b 4f | 4b 3b 25 64 5c 6e 22 2c |RESUME;O|K;%d\n",|
|00004f60| 73 75 62 63 68 6e 6c 2e | 63 64 73 63 5f 74 72 6b |subchnl.|cdsc_trk|
|00004f70| 29 3b 0a 09 09 20 7d 20 | 65 6c 73 65 20 7b 0a 20 |);... } |else {. |
|00004f80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004f90| 20 70 72 69 6e 74 66 28 | 22 41 75 64 69 6f 20 43 | printf(|"Audio C|
|00004fa0| 44 20 72 65 73 75 6d 65 | 64 20 66 72 6f 6d 20 74 |D resume|d from t|
|00004fb0| 72 61 63 6b 20 25 64 2e | 5c 6e 22 2c 73 75 62 63 |rack %d.|\n",subc|
|00004fc0| 68 6e 6c 2e 63 64 73 63 | 5f 74 72 6b 29 3b 0a 09 |hnl.cdsc|_trk);..|
|00004fd0| 20 20 20 20 20 20 20 7d | 0a 09 20 20 20 20 20 20 | }|.. |
|00004fe0| 20 62 72 65 61 6b 3b 0a | 09 7d 0a 20 20 20 7c 20 | break;.|.}. | |
|00004ff0| 43 4d 44 5f 56 4f 4c 55 | 4d 45 20 6e 75 6d 62 65 |CMD_VOLU|ME numbe|
|00005000| 72 0a 09 7b 0a 20 20 20 | 20 20 20 20 20 20 20 20 |r..{. | |
|00005010| 20 20 20 20 2f 2a 0a 20 | 20 20 20 20 20 20 20 20 | /*. | |
|00005020| 20 20 20 20 20 20 20 2a | 20 41 64 6a 75 73 74 20 | *| Adjust |
|00005030| 74 68 65 20 76 6f 6c 75 | 6d 65 20 6f 66 20 74 68 |the volu|me of th|
|00005040| 65 20 43 44 52 4f 4d 2e | 20 54 68 69 73 20 69 73 |e CDROM.| This is|
|00005050| 20 6e 6f 74 20 73 75 70 | 70 6f 72 74 65 64 0a 09 | not sup|ported..|
|00005060| 09 2a 20 6f 6e 20 61 6c | 6c 20 64 72 69 76 65 73 |.* on al|l drives|
|00005070| 20 61 6e 64 20 4c 69 6e | 75 78 20 64 72 69 76 65 | and Lin|ux drive|
|00005080| 72 73 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |rs | |
|00005090| 20 20 0a 09 09 2a 2f 0a | 09 20 20 20 20 20 20 20 | ...*/.|. |
|000050a0| 69 6e 69 74 63 64 72 6f | 6d 28 29 3b 0a 20 20 20 |initcdro|m();. |
|000050b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 69 66 20 28 | | if (|
|000050c0| 73 75 62 63 68 6e 6c 2e | 63 64 73 63 5f 61 75 64 |subchnl.|cdsc_aud|
|000050d0| 69 6f 73 74 61 74 75 73 | 21 3d 43 44 52 4f 4d 5f |iostatus|!=CDROM_|
|000050e0| 41 55 44 49 4f 5f 50 4c | 41 59 29 20 7b 0a 09 09 |AUDIO_PL|AY) {...|
|000050f0| 20 20 20 20 69 66 20 28 | 74 6b 63 64 29 20 7b 0a | if (|tkcd) {.|
|00005100| 09 09 09 70 75 74 73 28 | 22 56 4f 4c 55 4d 45 3b |...puts(|"VOLUME;|
|00005110| 4e 4f 50 4c 41 59 22 29 | 3b 0a 09 09 20 20 20 20 |NOPLAY")|;... |
|00005120| 20 20 7d 20 65 6c 73 65 | 20 7b 0a 20 20 20 20 20 | } else| {. |
|00005130| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005140| 20 20 20 70 75 74 73 28 | 22 41 75 64 69 6f 20 43 | puts(|"Audio C|
|00005150| 44 20 6e 6f 74 20 63 75 | 72 72 65 6e 74 20 70 6c |D not cu|rrent pl|
|00005160| 61 79 69 6e 67 2e 20 43 | 6f 6d 6d 61 6e 64 20 69 |aying. C|ommand i|
|00005170| 67 6e 6f 72 65 64 2e 5c | 6e 22 29 3b 0a 09 09 20 |gnored.\|n");... |
|00005180| 20 20 20 20 7d 0a 20 20 | 20 20 20 20 20 20 20 20 | }. | |
|00005190| 20 20 20 20 20 20 20 20 | 20 20 20 65 78 69 74 28 | | exit(|
|000051a0| 31 29 3b 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |1);. | |
|000051b0| 20 20 20 7d 0a 20 20 20 | 20 20 20 20 20 20 20 20 | }. | |
|000051c0| 20 20 20 20 69 66 20 28 | 28 24 32 3c 30 29 20 7c | if (|($2<0) ||
|000051d0| 7c 20 28 24 32 3e 32 35 | 35 29 29 20 7b 0a 20 20 || ($2>25|5)) {. |
|000051e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000051f0| 69 66 20 28 21 74 6b 63 | 64 29 20 70 75 74 73 28 |if (!tkc|d) puts(|
|00005200| 22 49 6c 6c 65 67 61 6c | 20 56 6f 6c 75 6d 65 20 |"Illegal| Volume |
|00005210| 76 61 6c 75 65 2e 20 55 | 73 65 20 30 20 2d 20 32 |value. U|se 0 - 2|
|00005220| 35 35 2e 20 43 6f 6d 6d | 61 6e 64 20 69 67 6e 6f |55. Comm|and igno|
|00005230| 72 65 64 2e 5c 6e 22 29 | 3b 0a 20 20 20 20 20 20 |red.\n")|;. |
|00005240| 20 20 20 20 20 20 20 20 | 20 20 20 20 62 72 65 61 | | brea|
|00005250| 6b 3b 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |k;. | |
|00005260| 20 20 7d 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 | }. | |
|00005270| 20 20 20 76 6f 6c 63 74 | 72 6c 2e 63 68 61 6e 6e | volct|rl.chann|
|00005280| 65 6c 30 3d 24 32 3b 0a | 20 20 20 20 20 20 20 20 |el0=$2;.| |
|00005290| 20 20 20 20 20 20 20 76 | 6f 6c 63 74 72 6c 2e 63 | v|olctrl.c|
|000052a0| 68 61 6e 6e 65 6c 31 3d | 24 32 3b 0a 20 20 20 20 |hannel1=|$2;. |
|000052b0| 20 20 20 20 20 20 20 20 | 20 20 20 76 6f 6c 63 74 | | volct|
|000052c0| 72 6c 2e 63 68 61 6e 6e | 65 6c 32 3d 24 32 3b 0a |rl.chann|el2=$2;.|
|000052d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 76 | | v|
|000052e0| 6f 6c 63 74 72 6c 2e 63 | 68 61 6e 6e 65 6c 33 3d |olctrl.c|hannel3=|
|000052f0| 24 32 3b 0a 09 20 20 20 | 20 20 20 20 69 66 20 28 |$2;.. | if (|
|00005300| 28 69 6f 63 74 6c 28 66 | 2c 43 44 52 4f 4d 56 4f |(ioctl(f|,CDROMVO|
|00005310| 4c 43 54 52 4c 2c 26 76 | 6f 6c 63 74 72 6c 29 29 |LCTRL,&v|olctrl))|
|00005320| 3d 3d 2d 31 29 20 7b 0a | 09 20 20 20 20 20 20 20 |==-1) {.|. |
|00005330| 20 20 20 69 66 20 28 74 | 6b 63 64 29 20 7b 0a 09 | if (t|kcd) {..|
|00005340| 20 20 20 20 09 20 20 20 | 20 20 70 75 74 73 28 22 | . | puts("|
|00005350| 56 4f 4c 55 4d 45 3b 45 | 52 52 4f 52 22 29 3b 0a |VOLUME;E|RROR");.|
|00005360| 09 09 20 20 7d 20 65 6c | 73 65 20 7b 0a 09 09 20 |.. } el|se {... |
|00005370| 20 20 20 20 70 65 72 72 | 6f 72 28 22 69 6f 63 74 | perr|or("ioct|
|00005380| 6c 28 43 44 52 4f 4d 56 | 4f 4c 43 54 52 4c 29 22 |l(CDROMV|OLCTRL)"|
|00005390| 29 3b 0a 09 09 20 20 7d | 0a 09 09 20 20 65 78 69 |);... }|... exi|
|000053a0| 74 28 31 29 3b 0a 09 20 | 20 20 20 20 20 20 7d 0a |t(1);.. | }.|
|000053b0| 09 20 20 20 20 20 20 20 | 69 66 20 28 74 6b 63 64 |. |if (tkcd|
|000053c0| 29 20 7b 0a 09 09 20 20 | 70 72 69 6e 74 66 28 22 |) {... |printf("|
|000053d0| 56 4f 4c 55 4d 45 3b 4f | 4b 3b 25 64 5c 6e 22 2c |VOLUME;O|K;%d\n",|
|000053e0| 24 32 29 3b 0a 09 09 20 | 7d 20 65 6c 73 65 20 7b |$2);... |} else {|
|000053f0| 09 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|00005400| 20 20 20 20 70 72 69 6e | 74 66 28 22 41 75 64 69 | prin|tf("Audi|
|00005410| 6f 20 43 44 20 56 6f 6c | 75 6d 65 20 73 65 74 20 |o CD Vol|ume set |
|00005420| 74 6f 20 25 64 2e 5c 6e | 22 2c 24 32 29 3b 0a 09 |to %d.\n|",$2);..|
|00005430| 20 20 20 20 20 20 20 7d | 0a 09 7d 0a 20 20 20 20 | }|..}. |
|00005440| 20 7c 20 43 4d 44 5f 53 | 4b 49 50 0a 09 7b 0a 09 | | CMD_S|KIP..{..|
|00005450| 20 20 20 20 20 20 20 2f | 2a 0a 20 20 20 20 20 20 | /|*. |
|00005460| 20 20 20 20 20 20 20 20 | 20 20 2a 20 46 69 67 75 | | * Figu|
|00005470| 72 65 20 6f 75 74 20 74 | 68 65 20 63 75 72 72 65 |re out t|he curre|
|00005480| 6e 74 20 74 72 61 63 6b | 20 61 6e 64 20 73 6b 69 |nt track| and ski|
|00005490| 70 20 74 6f 20 74 68 65 | 20 6e 65 78 74 20 6f 6e |p to the| next on|
|000054a0| 65 2e 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |e.. | |
|000054b0| 20 20 20 2a 20 49 66 20 | 74 68 69 73 20 69 73 20 | * If |this is |
|000054c0| 74 68 65 20 6c 61 73 74 | 20 74 72 61 63 6b 2c 20 |the last| track, |
|000054d0| 70 6c 61 79 20 74 68 65 | 20 66 69 72 73 74 20 74 |play the| first t|
|000054e0| 72 61 63 6b 2e 0a 20 20 | 20 20 20 20 20 20 20 20 |rack.. | |
|000054f0| 20 20 20 20 20 20 2a 2f | 0a 09 20 20 20 20 20 20 | */|.. |
|00005500| 20 69 6e 69 74 63 64 72 | 6f 6d 28 29 3b 0a 20 20 | initcdr|om();. |
|00005510| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 69 66 20 | | if |
|00005520| 28 73 75 62 63 68 6e 6c | 2e 63 64 73 63 5f 61 75 |(subchnl|.cdsc_au|
|00005530| 64 69 6f 73 74 61 74 75 | 73 21 3d 43 44 52 4f 4d |diostatu|s!=CDROM|
|00005540| 5f 41 55 44 49 4f 5f 50 | 4c 41 59 29 20 7b 0a 09 |_AUDIO_P|LAY) {..|
|00005550| 09 20 20 20 20 69 66 20 | 28 74 6b 63 64 29 20 7b |. if |(tkcd) {|
|00005560| 0a 09 09 09 70 75 74 73 | 28 22 53 4b 49 50 3b 4e |....puts|("SKIP;N|
|00005570| 4f 50 4c 41 59 22 29 3b | 0a 09 09 20 20 20 20 20 |OPLAY");|... |
|00005580| 20 7d 20 65 6c 73 65 20 | 7b 0a 20 20 20 20 20 20 | } else |{. |
|00005590| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000055a0| 20 20 70 75 74 73 28 22 | 41 75 64 69 6f 20 43 44 | puts("|Audio CD|
|000055b0| 20 6e 6f 74 20 63 75 72 | 72 65 6e 74 20 70 6c 61 | not cur|rent pla|
|000055c0| 79 69 6e 67 2e 20 43 6f | 6d 6d 61 6e 64 20 69 67 |ying. Co|mmand ig|
|000055d0| 6e 6f 72 65 64 2e 22 29 | 3b 0a 09 09 20 20 20 20 |nored.")|;... |
|000055e0| 20 7d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | }. | |
|000055f0| 20 20 20 20 20 20 20 20 | 65 78 69 74 28 31 29 3b | |exit(1);|
|00005600| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00005610| 7d 0a 09 20 20 20 20 20 | 20 20 69 66 20 28 28 74 |}.. | if ((t|
|00005620| 69 2e 63 64 74 69 5f 74 | 72 6b 30 3d 2b 2b 73 75 |i.cdti_t|rk0=++su|
|00005630| 62 63 68 6e 6c 2e 63 64 | 73 63 5f 74 72 6b 29 3e |bchnl.cd|sc_trk)>|
|00005640| 74 6f 63 68 64 72 2e 63 | 64 74 68 5f 74 72 6b 31 |tochdr.c|dth_trk1|
|00005650| 29 20 7b 0a 09 09 20 20 | 69 66 20 28 74 6b 63 64 |) {... |if (tkcd|
|00005660| 29 20 7b 0a 09 09 20 20 | 20 20 20 70 75 74 73 28 |) {... | puts(|
|00005670| 22 53 4b 49 50 3b 45 4e | 44 22 29 3b 0a 20 20 20 |"SKIP;EN|D");. |
|00005680| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005690| 20 7d 20 65 6c 73 65 20 | 7b 0a 20 20 20 20 20 20 | } else |{. |
|000056a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 70 | | p|
|000056b0| 75 74 73 28 22 50 6c 61 | 79 69 6e 67 20 6c 61 73 |uts("Pla|ying las|
|000056c0| 74 20 74 72 61 63 6b 2e | 20 53 6b 69 70 20 63 6f |t track.| Skip co|
|000056d0| 6d 6d 61 6e 64 20 69 67 | 6e 6f 72 65 64 2e 22 29 |mmand ig|nored.")|
|000056e0| 3b 0a 09 09 20 20 7d 0a | 20 20 20 20 20 20 20 20 |;... }.| |
|000056f0| 20 20 20 20 20 20 20 20 | 20 20 62 72 65 61 6b 3b | | break;|
|00005700| 0a 09 20 20 20 20 20 20 | 20 7d 0a 09 20 20 20 20 |.. | }.. |
|00005710| 20 20 20 63 64 5f 70 6c | 61 79 28 43 4d 44 5f 53 | cd_pl|ay(CMD_S|
|00005720| 4b 49 50 29 3b 0a 09 7d | 0a 20 20 20 20 20 7c 20 |KIP);..}|. | |
|00005730| 43 4d 44 5f 53 54 41 54 | 55 53 0a 20 20 20 20 20 |CMD_STAT|US. |
|00005740| 20 20 20 7b 0a 20 20 20 | 20 20 20 20 20 20 20 20 | {. | |
|00005750| 20 2f 2a 20 0a 20 20 20 | 20 20 20 20 20 20 20 20 | /* . | |
|00005760| 20 20 2a 20 47 69 76 65 | 20 74 68 65 20 73 74 61 | * Give| the sta|
|00005770| 74 75 73 20 6f 66 20 74 | 68 65 20 43 44 52 4f 4d |tus of t|he CDROM|
|00005780| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 2a 2f |. | */|
|00005790| 0a 09 20 20 20 20 69 6e | 69 74 63 64 72 6f 6d 28 |.. in|itcdrom(|
|000057a0| 29 3b 0a 09 20 20 20 20 | 63 64 5f 73 74 61 74 75 |);.. |cd_statu|
|000057b0| 73 28 29 3b 0a 20 20 20 | 20 20 20 20 20 7d 0a 20 |s();. | }. |
|000057c0| 20 20 20 20 7c 20 43 4d | 44 5f 44 45 56 49 43 45 | | CM|D_DEVICE|
|000057d0| 20 64 65 76 73 74 72 69 | 6e 67 0a 09 7b 20 0a 09 | devstri|ng..{ ..|
|000057e0| 20 20 20 2f 2a 0a 20 20 | 20 20 20 20 20 20 20 20 | /*. | |
|000057f0| 20 20 2a 20 57 65 20 61 | 72 65 20 73 70 65 63 69 | * We a|re speci|
|00005800| 66 69 6e 67 20 61 20 6e | 65 77 20 64 65 76 69 63 |fing a n|ew devic|
|00005810| 65 20 74 6f 20 6f 70 65 | 6e 2e 20 43 68 65 63 6b |e to ope|n. Check|
|00005820| 20 69 66 20 6f 6e 65 20 | 69 73 20 61 6c 72 65 61 | if one |is alrea|
|00005830| 64 79 20 6f 70 65 6e 0a | 20 20 20 20 20 20 20 20 |dy open.| |
|00005840| 20 20 20 20 2a 20 61 6e | 64 20 63 6c 6f 73 65 20 | * an|d close |
|00005850| 69 74 2e 20 46 6c 61 67 | 20 74 68 65 20 63 68 61 |it. Flag| the cha|
|00005860| 6e 67 65 2e 20 49 66 20 | 69 74 20 69 73 20 6e 6f |nge. If |it is no|
|00005870| 74 20 61 6c 72 65 61 64 | 79 20 6f 70 65 6e 2c 20 |t alread|y open, |
|00005880| 64 6f 20 6e 6f 74 68 69 | 6e 67 0a 20 20 20 20 20 |do nothi|ng. |
|00005890| 20 20 20 20 20 20 20 2a | 20 6f 74 68 65 72 20 74 | *| other t|
|000058a0| 68 61 6e 20 75 70 64 61 | 74 65 20 74 68 65 20 64 |han upda|te the d|
|000058b0| 65 76 69 63 65 20 74 6f | 20 6f 70 65 6e 0a 20 20 |evice to| open. |
|000058c0| 20 20 20 20 20 20 20 20 | 20 20 2a 2f 0a 09 20 20 | | */.. |
|000058d0| 20 69 66 20 28 63 64 72 | 6f 6d 6f 6b 29 20 7b 0a | if (cdr|omok) {.|
|000058e0| 09 20 20 20 20 20 20 20 | 63 6c 6f 73 65 28 66 29 |. |close(f)|
|000058f0| 3b 0a 09 20 20 20 20 20 | 20 20 63 64 72 6f 6d 6f |;.. | cdromo|
|00005900| 6b 3d 46 41 4c 53 45 3b | 0a 09 20 20 20 7d 0a 20 |k=FALSE;|.. }. |
|00005910| 20 20 20 20 20 20 20 20 | 20 20 73 74 72 63 70 79 | | strcpy|
|00005920| 28 63 64 5f 64 65 76 2c | 24 32 29 3b 0a 09 7d 0a |(cd_dev,|$2);..}.|
|00005930| 20 20 20 20 20 20 3b 0a | 20 20 20 20 20 20 20 20 | ;.| |
|00005940| 0a 6e 75 6d 62 65 72 3a | 20 4e 55 4d 42 45 52 20 |.number:| NUMBER |
|00005950| 7b 24 24 20 3d 20 24 31 | 3b 20 7d 0a 20 20 20 20 |{$$ = $1|; }. |
|00005960| 20 20 3b 0a 0a 64 65 76 | 73 74 72 69 6e 67 3a 20 | ;..dev|string: |
|00005970| 44 45 56 53 54 52 49 4e | 47 20 7b 20 24 24 20 3d |DEVSTRIN|G { $$ =|
|00005980| 20 24 31 3b 20 7d 0a 20 | 20 20 20 20 20 20 20 3b | $1; }. | ;|
|00005990| 0a 25 25 0a 0a 76 6f 69 | 64 20 75 73 61 67 65 28 |.%%..voi|d usage(|
|000059a0| 63 68 61 72 20 2a 61 72 | 67 30 29 0a 7b 0a 09 69 |char *ar|g0).{..i|
|000059b0| 6e 74 20 69 3b 0a 0a 09 | 66 70 75 74 73 28 22 43 |nt i;...|fputs("C|
|000059c0| 44 70 6c 61 79 65 72 20 | 32 2e 30 20 62 79 20 4d |Dplayer |2.0 by M|
|000059d0| 61 72 6b 20 42 75 63 6b | 61 77 61 79 20 28 6d 61 |ark Buck|away (ma|
|000059e0| 72 6b 40 64 61 74 61 73 | 6f 66 74 2e 63 6f 6d 29 |rk@datas|oft.com)|
|000059f0| 5c 6e 22 2c 73 74 64 65 | 72 72 29 3b 0a 20 20 20 |\n",stde|rr);. |
|00005a00| 20 20 20 20 20 66 70 75 | 74 73 28 22 28 43 29 20 | fpu|ts("(C) |
|00005a10| 31 39 39 33 2c 31 39 39 | 34 20 44 61 74 61 53 6f |1993,199|4 DataSo|
|00005a20| 66 74 20 43 6f 6d 6d 75 | 6e 69 63 61 74 69 6f 6e |ft Commu|nication|
|00005a30| 73 5c 6e 22 2c 73 74 64 | 65 72 72 29 3b 09 20 20 |s\n",std|err);. |
|00005a40| 0a 23 69 66 64 65 66 20 | 4e 45 43 5f 43 44 52 4f |.#ifdef |NEC_CDRO|
|00005a50| 4d 0a 09 66 70 72 69 6e | 74 66 28 73 74 64 65 72 |M..fprin|tf(stder|
|00005a60| 72 2c 22 43 6f 6d 70 69 | 6c 65 64 20 74 6f 20 6f |r,"Compi|led to o|
|00005a70| 70 65 6e 3a 20 25 73 20 | 28 4e 45 43 29 20 28 25 |pen: %s |(NEC) (%|
|00005a80| 73 29 5c 6e 22 2c 44 45 | 56 5f 43 44 52 4f 4d 2c |s)\n",DE|V_CDROM,|
|00005a90| 4f 53 29 3b 0a 23 65 6c | 73 65 0a 09 66 70 72 69 |OS);.#el|se..fpri|
|00005aa0| 6e 74 66 28 73 74 64 65 | 72 72 2c 22 43 6f 6d 70 |ntf(stde|rr,"Comp|
|00005ab0| 69 6c 65 64 20 74 6f 20 | 6f 70 65 6e 3a 20 25 73 |iled to |open: %s|
|00005ac0| 20 28 25 73 29 5c 6e 22 | 2c 44 45 56 5f 43 44 52 | (%s)\n"|,DEV_CDR|
|00005ad0| 4f 4d 2c 4f 53 29 3b 0a | 23 65 6e 64 69 66 0a 09 |OM,OS);.|#endif..|
|00005ae0| 66 70 72 69 6e 74 66 28 | 73 74 64 65 72 72 2c 22 |fprintf(|stderr,"|
|00005af0| 55 73 61 67 65 3a 20 25 | 73 20 5b 64 65 76 69 63 |Usage: %|s [devic|
|00005b00| 65 20 2f 64 65 76 2f 63 | 64 72 6f 6d 5d 20 63 6f |e /dev/c|drom] co|
|00005b10| 6d 6d 61 6e 64 20 5b 74 | 72 61 63 6b 20 6e 6f 2f |mmand [t|rack no/|
|00005b20| 76 6f 6c 75 6d 65 20 6e | 6f 5d 5c 6e 22 2c 61 72 |volume n|o]\n",ar|
|00005b30| 67 30 29 3b 0a 09 66 70 | 75 74 73 28 22 41 76 61 |g0);..fp|uts("Ava|
|00005b40| 69 6c 61 62 6c 65 20 63 | 6f 6d 6d 61 6e 64 73 3a |ilable c|ommands:|
|00005b50| 5c 6e 70 6c 61 79 20 73 | 74 6f 70 20 70 61 75 73 |\nplay s|top paus|
|00005b60| 65 20 72 65 73 75 6d 65 | 20 76 6f 6c 75 6d 65 20 |e resume| volume |
|00005b70| 65 6a 65 63 74 20 73 6b | 69 70 20 69 6e 66 6f 20 |eject sk|ip info |
|00005b80| 73 74 61 74 75 73 20 64 | 65 76 69 63 65 5c 6e 22 |status d|evice\n"|
|00005b90| 2c 73 74 64 65 72 72 29 | 3b 0a 09 65 78 69 74 28 |,stderr)|;..exit(|
|00005ba0| 31 29 3b 0a 7d 0a 0a 76 | 6f 69 64 20 69 6e 69 74 |1);.}..v|oid init|
|00005bb0| 63 64 72 6f 6d 28 29 0a | 7b 0a 20 20 20 20 20 46 |cdrom().|{. F|
|00005bc0| 49 4c 45 20 2a 66 70 3b | 0a 0a 20 20 20 20 20 2f |ILE *fp;|.. /|
|00005bd0| 2a 0a 20 20 20 20 20 20 | 2a 20 43 68 65 63 6b 20 |*. |* Check |
|00005be0| 69 66 20 77 65 20 61 6c | 72 65 61 64 79 20 69 6e |if we al|ready in|
|00005bf0| 69 74 69 61 6c 69 7a 65 | 64 20 74 68 65 20 63 64 |itialize|d the cd|
|00005c00| 72 6f 6d 20 64 65 76 69 | 63 65 20 61 6e 64 20 6f |rom devi|ce and o|
|00005c10| 62 74 61 69 6e 65 64 0a | 20 20 20 20 20 20 2a 20 |btained.| * |
|00005c20| 61 20 66 69 6c 65 20 68 | 61 6e 64 6c 65 20 66 6f |a file h|andle fo|
|00005c30| 72 20 74 68 65 20 43 44 | 52 4f 4d 2e 20 49 66 20 |r the CD|ROM. If |
|00005c40| 79 65 73 2c 20 75 70 64 | 61 74 65 64 20 74 68 65 |yes, upd|ated the|
|00005c50| 20 73 75 62 63 68 61 6e | 6e 65 6c 0a 20 20 20 20 | subchan|nel. |
|00005c60| 20 20 2a 20 69 6e 66 6f | 20 61 6e 64 20 72 65 74 | * info| and ret|
|00005c70| 75 72 6e 2c 20 69 66 20 | 6e 6f 74 2c 20 69 6e 69 |urn, if |not, ini|
|00005c80| 74 20 74 68 65 20 64 72 | 69 76 65 2e 0a 20 20 20 |t the dr|ive.. |
|00005c90| 20 20 20 2a 2f 0a 20 20 | 20 20 20 69 66 20 28 63 | */. | if (c|
|00005ca0| 64 72 6f 6d 6f 6b 29 20 | 7b 0a 20 20 20 20 20 20 |dromok) |{. |
|00005cb0| 20 20 63 64 5f 73 75 62 | 63 68 6e 6c 28 29 3b 0a | cd_sub|chnl();.|
|00005cc0| 20 20 20 20 20 20 20 20 | 72 65 74 75 72 6e 3b 0a | |return;.|
|00005cd0| 20 20 20 20 20 7d 0a 23 | 69 66 6e 64 65 66 20 43 | }.#|ifndef C|
|00005ce0| 4f 48 45 52 4e 45 54 20 | 0a 20 20 20 20 20 2f 2a |OHERNET |. /*|
|00005cf0| 20 0a 20 20 20 20 20 20 | 2a 20 43 68 65 63 6b 20 | . |* Check |
|00005d00| 69 66 20 43 44 52 4f 4d | 20 64 65 76 69 63 65 20 |if CDROM| device |
|00005d10| 69 73 20 61 6c 72 65 61 | 64 79 20 6d 6f 75 6e 74 |is alrea|dy mount|
|00005d20| 65 64 2c 20 61 6e 64 20 | 67 69 76 65 20 61 6e 20 |ed, and |give an |
|00005d30| 65 72 72 6f 72 20 69 66 | 20 69 74 20 69 73 2e 0a |error if| it is..|
|00005d40| 20 20 20 20 20 20 2a 20 | 54 68 69 73 20 72 6f 75 | * |This rou|
|00005d50| 74 69 6e 65 20 63 68 65 | 63 6b 73 20 74 68 65 20 |tine che|cks the |
|00005d60| 6d 74 61 62 20 66 6f 72 | 20 61 6e 79 20 69 73 6f |mtab for| any iso|
|00005d70| 39 36 36 30 20 66 69 6c | 65 20 73 79 73 74 65 6d |9660 fil|e system|
|00005d80| 2c 20 61 6e 64 20 74 68 | 65 6e 20 63 6f 6d 70 61 |, and th|en compa|
|00005d90| 72 65 73 0a 20 20 20 20 | 20 20 2a 20 74 68 65 20 |res. | * the |
|00005da0| 6e 61 6d 65 20 6f 66 20 | 74 68 65 20 64 65 76 69 |name of |the devi|
|00005db0| 63 65 20 66 6f 72 20 74 | 68 61 74 20 66 69 6c 65 |ce for t|hat file|
|00005dc0| 20 73 79 73 74 65 6d 20 | 74 6f 20 74 68 65 20 64 | system |to the d|
|00005dd0| 65 76 69 63 65 20 77 65 | 20 77 61 6e 74 20 74 6f |evice we| want to|
|00005de0| 20 79 6f 75 2e 0a 20 20 | 20 20 20 20 2a 20 49 66 | you.. | * If|
|00005df0| 20 61 20 6d 61 74 63 68 | 20 69 73 20 66 6f 75 6e | a match| is foun|
|00005e00| 64 2c 20 74 68 65 20 64 | 65 76 69 63 65 20 69 73 |d, the d|evice is|
|00005e10| 20 61 73 73 75 6d 65 64 | 20 74 6f 20 62 65 20 61 | assumed| to be a|
|00005e20| 6c 72 65 61 64 79 20 6d | 6f 75 6e 74 65 64 2e 0a |lready m|ounted..|
|00005e30| 20 20 20 20 20 20 2a 0a | 20 20 20 20 20 20 2a 20 | *.| * |
|00005e40| 54 68 69 73 20 63 68 65 | 63 6b 20 69 73 20 62 79 |This che|ck is by|
|00005e50| 70 61 73 73 65 64 20 66 | 6f 72 20 43 6f 68 65 72 |passed f|or Coher|
|00005e60| 65 6e 74 2c 20 61 73 20 | 74 68 65 79 20 63 61 6e |ent, as |they can|
|00005e70| 27 74 20 79 65 74 20 6d | 6f 75 6e 74 20 69 73 6f |'t yet m|ount iso|
|00005e80| 39 36 36 30 0a 20 20 20 | 20 20 20 2a 20 66 69 6c |9660. | * fil|
|00005e90| 65 73 79 73 74 65 6d 73 | 2e 0a 20 20 20 20 20 20 |esystems|.. |
|00005ea0| 2a 2f 0a 20 20 20 20 20 | 69 66 20 28 28 66 70 3d |*/. |if ((fp=|
|00005eb0| 73 65 74 6d 6e 74 65 6e | 74 28 4d 4f 55 4e 54 45 |setmnten|t(MOUNTE|
|00005ec0| 44 2c 22 72 22 29 29 3d | 3d 4e 55 4c 4c 29 20 7b |D,"r"))=|=NULL) {|
|00005ed0| 0a 09 20 20 66 70 72 69 | 6e 74 66 28 73 74 64 65 |.. fpri|ntf(stde|
|00005ee0| 72 72 2c 22 43 6f 75 6c | 64 6e 27 74 20 6f 70 65 |rr,"Coul|dn't ope|
|00005ef0| 6e 20 25 73 3a 20 25 73 | 5c 6e 22 2c 4d 4f 55 4e |n %s: %s|\n",MOUN|
|00005f00| 54 45 44 2c 73 74 72 65 | 72 72 6f 72 28 65 72 72 |TED,stre|rror(err|
|00005f10| 6e 6f 29 29 3b 0a 09 20 | 20 65 78 69 74 28 31 29 |no));.. | exit(1)|
|00005f20| 3b 0a 20 20 20 20 20 7d | 0a 20 20 20 20 20 77 68 |;. }|. wh|
|00005f30| 69 6c 65 20 28 28 6d 6e | 74 3d 67 65 74 6d 6e 74 |ile ((mn|t=getmnt|
|00005f40| 65 6e 74 28 66 70 29 29 | 21 3d 4e 55 4c 4c 29 20 |ent(fp))|!=NULL) |
|00005f50| 7b 0a 09 20 20 69 66 20 | 28 73 74 72 63 6d 70 28 |{.. if |(strcmp(|
|00005f60| 6d 6e 74 2d 3e 6d 6e 74 | 5f 74 79 70 65 2c 22 69 |mnt->mnt|_type,"i|
|00005f70| 73 6f 39 36 36 30 22 29 | 3d 3d 30 29 20 7b 0a 20 |so9660")|==0) {. |
|00005f80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 69 66 | | if|
|00005f90| 20 28 73 74 72 63 6d 70 | 28 6d 6e 74 2d 3e 6d 6e | (strcmp|(mnt->mn|
|00005fa0| 74 5f 66 73 6e 61 6d 65 | 2c 63 64 5f 64 65 76 29 |t_fsname|,cd_dev)|
|00005fb0| 21 3d 30 29 20 63 6f 6e | 74 69 6e 75 65 3b 0a 09 |!=0) con|tinue;..|
|00005fc0| 20 20 20 20 20 20 20 69 | 66 20 28 74 6b 63 64 29 | i|f (tkcd)|
|00005fd0| 20 7b 0a 09 09 20 20 70 | 75 74 73 28 22 45 52 52 | {... p|uts("ERR|
|00005fe0| 4f 52 22 29 3b 0a 09 09 | 20 7d 20 65 6c 73 65 20 |OR");...| } else |
|00005ff0| 7b 0a 09 20 20 20 20 20 | 20 20 20 20 20 70 72 69 |{.. | pri|
|00006000| 6e 74 66 28 22 43 44 52 | 4f 4d 20 5c 22 25 73 5c |ntf("CDR|OM \"%s\|
|00006010| 22 20 61 70 70 65 61 72 | 73 20 74 6f 20 62 65 20 |" appear|s to be |
|00006020| 61 6c 72 65 61 64 79 20 | 6d 6f 75 6e 74 65 64 2e |already |mounted.|
|00006030| 20 55 6e 6d 6f 75 6e 74 | 20 43 44 52 4f 4d 20 66 | Unmount| CDROM f|
|00006040| 69 72 73 74 2e 5c 6e 22 | 2c 63 64 5f 64 65 76 29 |irst.\n"|,cd_dev)|
|00006050| 3b 0a 09 20 20 20 20 20 | 20 20 7d 0a 09 20 20 20 |;.. | }.. |
|00006060| 20 20 20 20 65 6e 64 6d | 6e 74 65 6e 74 28 66 70 | endm|ntent(fp|
|00006070| 29 3b 0a 09 20 20 20 20 | 20 20 20 65 78 69 74 28 |);.. | exit(|
|00006080| 31 29 3b 0a 09 20 20 7d | 0a 20 20 20 20 20 7d 0a |1);.. }|. }.|
|00006090| 20 20 20 20 20 65 6e 64 | 6d 6e 74 65 6e 74 28 66 | end|mntent(f|
|000060a0| 70 29 3b 0a 23 65 6e 64 | 69 66 0a 0a 20 20 20 20 |p);.#end|if.. |
|000060b0| 20 2f 2a 0a 20 20 20 20 | 20 20 2a 20 4f 70 65 6e | /*. | * Open|
|000060c0| 20 74 68 65 20 43 44 20 | 64 65 76 69 63 65 2e 0a | the CD |device..|
|000060d0| 20 20 20 20 20 20 2a 2f | 0a 20 20 20 20 20 69 66 | */|. if|
|000060e0| 20 28 28 66 3d 6f 70 65 | 6e 28 63 64 5f 64 65 76 | ((f=ope|n(cd_dev|
|000060f0| 2c 4f 5f 52 44 4f 4e 4c | 59 29 29 3d 3d 2d 31 29 |,O_RDONL|Y))==-1)|
|00006100| 20 7b 0a 09 20 20 69 66 | 20 28 74 6b 63 64 29 20 | {.. if| (tkcd) |
|00006110| 7b 0a 09 20 20 20 20 20 | 70 75 74 73 28 22 45 52 |{.. |puts("ER|
|00006120| 52 4f 52 22 29 3b 0a 09 | 20 20 20 20 7d 20 65 6c |ROR");..| } el|
|00006130| 73 65 20 7b 0a 09 20 20 | 20 20 20 70 65 72 72 6f |se {.. | perro|
|00006140| 72 28 22 45 72 72 6f 72 | 20 6f 70 65 6e 69 6e 67 |r("Error| opening|
|00006150| 20 63 64 72 6f 6d 20 64 | 65 76 69 63 65 22 29 3b | cdrom d|evice");|
|00006160| 0a 09 20 20 7d 0a 09 20 | 20 65 78 69 74 28 31 29 |.. }.. | exit(1)|
|00006170| 3b 0a 20 20 20 20 20 7d | 0a 0a 20 20 20 20 20 2f |;. }|.. /|
|00006180| 2a 20 0a 20 20 20 20 20 | 20 2a 20 47 65 74 20 74 |* . | * Get t|
|00006190| 61 62 6c 65 20 6f 66 20 | 63 6f 6e 74 65 6e 74 20 |able of |content |
|000061a0| 68 65 61 64 65 72 20 65 | 6e 74 72 79 20 66 6f 72 |header e|ntry for|
|000061b0| 20 6d 69 6e 20 61 6e 64 | 20 6d 61 78 20 74 72 61 | min and| max tra|
|000061c0| 63 6b 73 20 61 6e 64 20 | 0a 20 20 20 20 20 20 2a |cks and |. *|
|000061d0| 20 73 74 6f 72 65 20 74 | 68 65 73 65 20 66 6f 72 | store t|hese for|
|000061e0| 20 66 75 74 75 72 65 20 | 72 65 66 65 72 65 6e 63 | future |referenc|
|000061f0| 65 0a 20 20 20 20 20 20 | 2a 2f 0a 20 20 20 20 20 |e. |*/. |
|00006200| 69 66 20 28 28 69 6f 63 | 74 6c 28 66 2c 43 44 52 |if ((ioc|tl(f,CDR|
|00006210| 4f 4d 52 45 41 44 54 4f | 43 48 44 52 2c 26 74 6f |OMREADTO|CHDR,&to|
|00006220| 63 68 64 72 29 29 3d 3d | 2d 31 29 20 7b 0a 09 20 |chdr))==|-1) {.. |
|00006230| 20 69 66 20 28 74 6b 63 | 64 29 20 7b 0a 20 09 20 | if (tkc|d) {. . |
|00006240| 20 20 20 20 70 75 74 73 | 28 22 45 52 52 4f 52 22 | puts|("ERROR"|
|00006250| 29 3b 0a 09 20 20 20 7d | 20 65 6c 73 65 20 7b 0a |);.. }| else {.|
|00006260| 09 20 20 20 20 20 70 65 | 72 72 6f 72 28 22 69 6f |. pe|rror("io|
|00006270| 63 74 6c 28 43 44 52 4f | 4d 52 45 41 44 54 4f 48 |ctl(CDRO|MREADTOH|
|00006280| 44 52 29 22 29 3b 0a 09 | 20 20 7d 0a 09 20 20 65 |DR)");..| }.. e|
|00006290| 78 69 74 28 31 29 3b 0a | 20 20 20 20 20 7d 0a 20 |xit(1);.| }. |
|000062a0| 20 20 20 20 63 64 5f 73 | 75 62 63 68 6e 6c 28 29 | cd_s|ubchnl()|
|000062b0| 3b 0a 20 20 20 20 20 63 | 64 72 6f 6d 6f 6b 3d 54 |;. c|dromok=T|
|000062c0| 52 55 45 3b 0a 7d 0a 0a | 2f 2a 0a 20 2a 20 50 6c |RUE;.}..|/*. * Pl|
|000062d0| 61 79 20 61 20 41 75 64 | 69 6f 20 43 44 20 73 74 |ay a Aud|io CD st|
|000062e0| 61 72 74 69 6e 67 20 61 | 74 20 74 72 61 63 6b 20 |arting a|t track |
|000062f0| 74 6f 63 68 64 72 2e 63 | 68 74 68 5f 74 72 6b 30 |tochdr.c|hth_trk0|
|00006300| 20 28 67 6c 6f 62 61 6c | 20 76 61 72 69 61 62 6c | (global| variabl|
|00006310| 65 29 0a 20 2a 2f 0a 76 | 6f 69 64 20 63 64 5f 70 |e). */.v|oid cd_p|
|00006320| 6c 61 79 28 69 6e 74 20 | 63 6d 64 29 0a 7b 0a 20 |lay(int |cmd).{. |
|00006330| 20 20 20 20 74 69 2e 63 | 64 74 69 5f 69 6e 64 30 | ti.c|dti_ind0|
|00006340| 3d 31 3b 0a 20 20 20 20 | 20 74 69 2e 63 64 74 69 |=1;. | ti.cdti|
|00006350| 5f 74 72 6b 31 3d 74 6f | 63 68 64 72 2e 63 64 74 |_trk1=to|chdr.cdt|
|00006360| 68 5f 74 72 6b 31 3b 0a | 20 20 20 20 20 74 69 2e |h_trk1;.| ti.|
|00006370| 63 64 74 69 5f 69 6e 64 | 31 3d 31 3b 0a 20 20 20 |cdti_ind|1=1;. |
|00006380| 20 20 69 66 20 28 28 69 | 6f 63 74 6c 28 66 2c 43 | if ((i|octl(f,C|
|00006390| 44 52 4f 4d 50 4c 41 59 | 54 52 4b 49 4e 44 2c 26 |DROMPLAY|TRKIND,&|
|000063a0| 74 69 29 29 3d 3d 2d 31 | 29 20 7b 0a 09 20 69 66 |ti))==-1|) {.. if|
|000063b0| 20 28 21 74 6b 63 64 29 | 20 7b 0a 09 20 20 20 20 | (!tkcd)| {.. |
|000063c0| 20 70 65 72 72 6f 72 28 | 22 69 6f 63 74 6c 28 43 | perror(|"ioctl(C|
|000063d0| 44 52 4f 4d 50 4c 41 59 | 54 52 4b 49 4e 44 29 22 |DROMPLAY|TRKIND)"|
|000063e0| 29 3b 0a 09 20 20 20 20 | 7d 20 65 6c 73 65 20 7b |);.. |} else {|
|000063f0| 0a 09 20 20 20 20 20 70 | 75 74 73 28 22 50 4c 41 |.. p|uts("PLA|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.